Skip to main content

Poll (Object)

Description

No description



Fields

NameDescription
closesAt - DateTime
createdAt - String!
createdById - String!
deletedAt - String
id - ID!
isDraft - Boolean!
maxSelections - Int!The maximum number of options a participant can select. Defaults to 1.
networkId - String!
opensAt - DateTime!
options - [PollOption!]!
parentEntityId - String
parentEntityType - PollEntityType!
status - PollStatus!
title - String!
totalParticipants - IntThe number of people who have participated in the poll.
totalVoteCasts - IntThe number of votes cast for this poll. In case of multi-choice polls, it can be more than total participants.
updatedAt - String!
usersVote - VoteVote cast by the current user
voteToken - StringJWT token that allows voting on this poll. Valid for 1 hour from generation.

type Poll {
closesAt: DateTime
createdAt: String!
createdById: String!
deletedAt: String
id: ID!
isDraft: Boolean!
maxSelections: Int!
networkId: String!
opensAt: DateTime!
options: [PollOption!]!
parentEntityId: String
parentEntityType: PollEntityType!
status: PollStatus!
title: String!
totalParticipants: Int
totalVoteCasts: Int
updatedAt: String!
usersVote: Vote
voteToken: String
}