Github API - Test Config

DiscussionPoll [object]

A poll for a discussion.

Implements
Node

Node [interface]

An object with an ID.

Attributes
id ID

ID of the object.

API:
Github GraphQL API
Attributes
discussion Discussion

Discussion [object]

A discussion in a repository.

Implements
ClosableCommentDeletableLabelableLockableNodeReactableRepositoryNodeSubscribableUpdatableVotable
Attributes
activeLockReason LockReason

Reason that the conversation was locked.

The comment chosen as this discussion's answer, if any.

answerChosenAt DateTime

The time when a user chose this discussion's answer, if answered.

answerChosenBy Actor

The user who chose this discussion's answer, if answered.

author Actor

The actor who authored the comment.

authorAssociation CommentAuthorAssociation

Author's association with the subject of the comment.

body String

The main text of the discussion post.

bodyHTML HTML

The body rendered to HTML.

bodyText String

The body rendered to text.

The category for this discussion.

closed Boolean

Indicates if the object is closed (definition of closed may depend on type)

closedAt DateTime

Identifies the date and time when the object was closed.

The replies to the discussion.

createdAt DateTime

Identifies the date and time when the object was created.

createdViaEmail Boolean

Check if this comment was created via an email reply.

databaseId Int

Identifies the primary key from the database.

editor Actor

The actor who edited the comment.

id ID

The Node ID of the Discussion object

includesCreatedEdit Boolean

Check if this comment was edited and includes an edit with the creation data

isAnswered Boolean

Only return answered/unanswered discussions

A list of labels associated with the object.

lastEditedAt DateTime

The moment the editor made the last edit

locked Boolean

true if the object is locked

number Int

The number identifying this discussion within the repository.

The poll associated with this discussion, if one exists.

publishedAt DateTime

Identifies when the comment was published at.

reactionGroups ReactionGroup []

A list of reactions grouped by content left on the subject.

reactions ReactionConnection

A list of Reactions left on the Issue.

repository Repository

The repository associated with this node.

resourcePath URI

The path for this discussion.

stateReason DiscussionStateReason

Identifies the reason for the discussion's state.

title String

The title of this discussion.

updatedAt DateTime

Identifies the date and time when the object was last updated.

upvoteCount Int

Number of upvotes that this subject has received.

url URI

The URL for this discussion.

userContentEdits UserContentEditConnection

A list of edits to this content.

viewerCanClose Boolean

Indicates if the object can be closed by the viewer.

viewerCanDelete Boolean

Check if the current viewer can delete this object.

viewerCanReact Boolean

Can user react to this subject

viewerCanReopen Boolean

Indicates if the object can be reopened by the viewer.

viewerCanSubscribe Boolean

Check if the viewer is able to change their subscription status for the repository.

viewerCanUpdate Boolean

Check if the current viewer can update this object.

viewerCanUpvote Boolean

Whether or not the current user can add or remove an upvote on this subject.

viewerDidAuthor Boolean

Did the viewer author this comment.

viewerHasUpvoted Boolean

Whether or not the current user has already upvoted this subject.

viewerSubscription SubscriptionState

Identifies if the viewer is watching, not watching, or ignoring the subscribable entity.

API:
Github GraphQL API

The discussion that this poll belongs to.

id ID

ID [scalar]

The ID scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as "4") or integer (such as 4) input value will be accepted as an ID.

API:
Github GraphQL API

The Node ID of the DiscussionPoll object

options DiscussionPollOptionConnection

DiscussionPollOptionConnection [object]

The connection type for DiscussionPollOption.

Attributes

A list of edges.

A list of nodes.

pageInfo PageInfo

Information to aid in pagination.

totalCount Int

Identifies the total count of items in the connection.

API:
Github GraphQL API

The options for this poll.

question String

String [scalar]

The String scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.

API:
Github GraphQL API

The question that is being asked by this poll.

totalVoteCount Int

Int [scalar]

The Int scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.

API:
Github GraphQL API

The total number of votes that have been cast for this poll.

viewerCanVote Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates if the viewer has permission to vote in this poll.

viewerHasVoted Boolean

Boolean [scalar]

The Boolean scalar type represents true or false.

API:
Github GraphQL API

Indicates if the viewer has voted for any option in this poll.

API:
Github GraphQL API