club.fellas.v0.poll.vote

cam.fellas.club

Documentation

A member's vote on a poll within the fella space. Convention: rkey equals the poll record's rkey, so casting a new vote overwrites the previous one (via applyWrites update) rather than creating a second record.

main record

A member's vote on a poll within the fella space. Convention: rkey equals the poll record's rkey, so casting a new vote overwrites the previous one (via applyWrites update) rather than creating a second record.

Record Key any Any valid record key

Properties

votedAt string datetime Required

An RFC 3339 formatted timestamp.

View raw schema
{
  "description": "A member's vote on a poll within the fella space. Convention: rkey equals the poll record's rkey, so casting a new vote overwrites the previous one (via applyWrites update) rather than creating a second record.",
  "key": "any",
  "record": {
    "properties": {
      "choice": {
        "refs": [
          "#singleChoice",
          "#rankedChoice"
        ],
        "type": "union"
      },
      "poll": {
        "ref": "com.atproto.repo.strongRef",
        "type": "ref"
      },
      "votedAt": {
        "format": "datetime",
        "type": "string"
      }
    },
    "required": [
      "poll",
      "choice",
      "votedAt"
    ],
    "type": "object"
  },
  "type": "record"
}
rankedChoice object

No description available.

Properties

ranking array of string Required

Option ids (see singleChoice.optionId for what that means per optionsMode), ordered best-to-worst. Options left out are treated as tied-last.

maxLength: 32 itemsminLength: 1 items
View raw schema
{
  "properties": {
    "ranking": {
      "description": "Option ids (see singleChoice.optionId for what that means per optionsMode), ordered best-to-worst. Options left out are treated as tied-last.",
      "items": {
        "maxLength": 64,
        "type": "string"
      },
      "maxLength": 32,
      "minLength": 1,
      "type": "array"
    }
  },
  "required": [
    "ranking"
  ],
  "type": "object"
}
singleChoice object

No description available.

Properties

optionId string Required

A stringified array index into the poll's options (optionsMode 'author') or a club.fellas.v0.poll.option record's rkey (optionsMode 'group').

maxLength: 64 bytes
View raw schema
{
  "properties": {
    "optionId": {
      "description": "A stringified array index into the poll's options (optionsMode 'author') or a club.fellas.v0.poll.option record's rkey (optionsMode 'group').",
      "maxLength": 64,
      "type": "string"
    }
  },
  "required": [
    "optionId"
  ],
  "type": "object"
}

Lexicon Garden

@