Github API - Test Config

CreateDiscussionPayload [object]

Autogenerated return type of CreateDiscussion

Attributes
clientMutationId 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

A unique identifier for the client performing the mutation.

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 was just created.

API:
Github GraphQL API