OBJECT
Poll
A poll users can vote in.
link GraphQL Schema definition
1 type Poll { 2 3 # A choice specified by a choice id. 4 ID!): PollChoice ( : 5 6 # A list of choices users can vote for. 7 PollChoice!]! : [ 8 9 # User that created the poll. 10 # Mods and editors can make polls on behalf of a broadcaster. 11 User : 12 13 # Amount of seconds from when the poll starts to when it ends. 14 # Since a broadcaster can end a poll early ("terminate a poll"), it may be 15 # possible for endedAt - startedAt != duration. 16 Int! : 17 18 # Time when the poll ended. 19 # Null if the poll is still active. 20 Time : 21 22 # User that ended the poll. Mods and editors can end polls on behalf of a 23 # broadcaster. 24 # Null if no user manually ended the poll. 25 User : 26 27 # ID of poll. 28 ID! : 29 30 # Whether the poll is viewable by other users. 31 Boolean! : 32 33 # User who owns this poll. The poll will appear on their channel. 34 User : 35 36 # Amount of milliseconds before the poll ends. 37 # 0 when the polls is ended. 38 Int! : 39 40 # The authenticated user's relationship with this poll. 41 # Main use case is to check if the user has voted in the poll already. 42 # Null if un-authenticated user is making this query. 43 PollSelfEdge : 44 45 # A map of poll settings. 46 PollSettings! : 47 48 # Time when poll started. 49 Time! : 50 51 # The status of the poll. 52 PollStatus! : 53 54 # Title of poll. 55 String! : 56 57 # A breakdown of the different tokens used in this poll. 58 PollTokenBreakdown! : 59 60 # The top Bits contributor for the poll. 61 PollTopBitsContributor : 62 63 # The top Community Points contributor for the poll. 64 PollTopCommunityPointsContributor : 65 66 # The top Bits contributor for the poll. 67 PollTopContributor @deprecated( reason: "Use topBitsContributor instead." ) : 68 69 # Total number of unique voters that have voted in this poll. 70 Int! : 71 72 # A breakdown of the different votes cast in this poll. 73 PollVoteBreakdown! : 74 75 }
link Required by
- ArchivePollInChannelPayloadOutputs from the archive poll mutation.
- ArchivePollPayloadOutputs from the create poll mutation.
- CreatePollPayloadOutputs from the create poll mutation.
- PollEdgeA page entry, that contains the Poll item and a cursor to return from the query to allow pagination.
- PollVoterA voter taking part in a poll and associated information.
- QueryRoot fields to access the Twitch API.
- TerminatePollInChannelPayloadOutputs from the terminate poll mutation.
- TerminatePollPayloadOutputs from the create poll mutation.
- UserTwitch user.