Mutations
addDiscussionComment
Adds a comment to a Discussion, possibly as a reply to another comment.
Eingabefelder für addDiscussionComment
input(AddDiscussionCommentInput!)
Rückgabefelder für addDiscussionComment
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created discussion comment. |
addDiscussionPollVote
Vote for an option in a discussion poll.
Eingabefelder für addDiscussionPollVote
input(AddDiscussionPollVoteInput!)
Rückgabefelder für addDiscussionPollVote
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The poll option that a vote was added to. |
addUpvote
Add an upvote to a discussion or discussion comment.
Eingabefelder für addUpvote
input(AddUpvoteInput!)
Rückgabefelder für addUpvote
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
closeDiscussion
Close a discussion.
Eingabefelder für closeDiscussion
input(CloseDiscussionInput!)
Rückgabefelder für closeDiscussion
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was closed. |
createDiscussion
Create a discussion.
Eingabefelder für createDiscussion
input(CreateDiscussionInput!)
Rückgabefelder für createDiscussion
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was just created. |
deleteDiscussion
Delete a discussion and all of its replies.
Eingabefelder für deleteDiscussion
input(DeleteDiscussionInput!)
Rückgabefelder für deleteDiscussion
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was just deleted. |
deleteDiscussionComment
Delete a discussion comment. If it has replies, wipe it instead.
Eingabefelder für deleteDiscussionComment
input(DeleteDiscussionCommentInput!)
Rückgabefelder für deleteDiscussionComment
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion comment that was just deleted. |
markDiscussionCommentAsAnswer
Mark a discussion comment as the chosen answer for discussions in an answerable category.
Eingabefelder für markDiscussionCommentAsAnswer
Rückgabefelder für markDiscussionCommentAsAnswer
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that includes the chosen comment. |
removeUpvote
Remove an upvote to a discussion or discussion comment.
Eingabefelder für removeUpvote
input(RemoveUpvoteInput!)
Rückgabefelder für removeUpvote
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
reopenDiscussion
Reopen a discussion.
Eingabefelder für reopenDiscussion
input(ReopenDiscussionInput!)
Rückgabefelder für reopenDiscussion
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was reopened. |
unmarkDiscussionCommentAsAnswer
Unmark a discussion comment as the chosen answer for discussions in an answerable category.
Eingabefelder für unmarkDiscussionCommentAsAnswer
Rückgabefelder für unmarkDiscussionCommentAsAnswer
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that includes the comment. |
updateDiscussion
Update a discussion.
Eingabefelder für updateDiscussion
input(UpdateDiscussionInput!)
Rückgabefelder für updateDiscussion
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion. |
updateDiscussionComment
Update the contents of a comment on a Discussion.
Eingabefelder für updateDiscussionComment
input(UpdateDiscussionCommentInput!)
Rückgabefelder für updateDiscussionComment
| Name | BESCHREIBUNG |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion comment. |
Objects
Discussion
A discussion in a repository.
Discussion Wird implementiert
Felder für Discussion
| Name | BESCHREIBUNG |
|---|---|
| Reason that the conversation was locked. |
| The comment chosen as this discussion's answer, if any. |
| The time when a user chose this discussion's answer, if answered. |
| The user who chose this discussion's answer, if answered. |
| The actor who authored the discussion. |
| Author's association with the subject of the comment. |
| The main text of the discussion post. |
| The body rendered to HTML. |
| The body rendered to text. |
| The category for this discussion. |
| Indicates if the object is closed (definition of closed may depend on type). |
| Identifies the date and time when the object was closed. |
| The replies to the discussion. |
| Identifies the date and time when the object was created. |
| Check if this comment was created via an email reply. |
| Identifies the primary key from the database. |
| The actor who edited the comment. |
| The Node ID of the Discussion object. |
| Check if this comment was edited and includes an edit with the creation data. |
| Only return answered/unanswered discussions. |
| A list of labels associated with the object. Argumente für
|
| The moment the editor made the last edit. |
|
|
| The number identifying this discussion within the repository. |
| The poll associated with this discussion, if one exists. |
| Identifies when the comment was published at. |
| A list of reactions grouped by content left on the subject. |
| A list of Reactions left on the Issue. Argumente für
|
| The repository associated with this node. |
| The path for this discussion. |
| Identifies the reason for the discussion's state. |
| The title of this discussion. |
| Identifies the date and time when the object was last updated. |
| Number of upvotes that this subject has received. |
| The URL for this discussion. |
| A list of edits to this content. Argumente für
|
| Indicates if the object can be closed by the viewer. |
| Check if the current viewer can delete this object. |
| Indicates if the viewer can edit labels for this object. |
| Can user react to this subject. |
| Indicates if the object can be reopened by the viewer. |
| Check if the viewer is able to change their subscription status for the repository. |
| Check if the current viewer can update this object. |
| Whether or not the current user can add or remove an upvote on this subject. |
| Did the viewer author this comment. |
| Whether or not the current user has already upvoted this subject. |
| Identifies if the viewer is watching, not watching, or ignoring the subscribable entity. |
DiscussionCategory
A category for discussions in a repository.
DiscussionCategory Wird implementiert
Felder für DiscussionCategory
| Name | BESCHREIBUNG |
|---|---|
| Identifies the date and time when the object was created. |
| A description of this category. |
| An emoji representing this category. |
| This category's emoji rendered as HTML. |
| The Node ID of the DiscussionCategory object. |
| Whether or not discussions in this category support choosing an answer with the markDiscussionCommentAsAnswer mutation. |
| The name of this category. |
| The repository associated with this node. |
| The slug of this category. |
| Identifies the date and time when the object was last updated. |
DiscussionCategoryConnection
The connection type for DiscussionCategory.
Felder für DiscussionCategoryConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DiscussionCategoryEdge
An edge in a connection.
Felder für DiscussionCategoryEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DiscussionComment
A comment on a discussion.
DiscussionComment Wird implementiert
Felder für DiscussionComment
| Name | BESCHREIBUNG |
|---|---|
| The actor who authored the comment. |
| Author's association with the subject of the comment. |
| The body as Markdown. |
| The body rendered to HTML. |
| The body rendered to text. |
| Identifies the date and time when the object was created. |
| Check if this comment was created via an email reply. |
| Identifies the primary key from the database. |
| The time when this replied-to comment was deleted. |
| The discussion this comment was created in. |
| The actor who edited the comment. |
| The Node ID of the DiscussionComment object. |
| Check if this comment was edited and includes an edit with the creation data. |
| Has this comment been chosen as the answer of its discussion?. |
| Returns whether or not a comment has been minimized. |
| The moment the editor made the last edit. |
| Returns why the comment was minimized. One of |
| Identifies when the comment was published at. |
| A list of reactions grouped by content left on the subject. |
| A list of Reactions left on the Issue. Argumente für
|
| The threaded replies to this comment. |
| The discussion comment this comment is a reply to. |
| The path for this discussion comment. |
| Identifies the date and time when the object was last updated. |
| Number of upvotes that this subject has received. |
| The URL for this discussion comment. |
| A list of edits to this content. Argumente für
|
| Check if the current viewer can delete this object. |
| Can the current user mark this comment as an answer?. |
| Check if the current viewer can minimize this object. |
| Can user react to this subject. |
| Can the current user unmark this comment as an answer?. |
| Check if the current viewer can unminimize this object. |
| Check if the current viewer can update this object. |
| Whether or not the current user can add or remove an upvote on this subject. |
| Reasons why the current viewer can not update this comment. |
| Did the viewer author this comment. |
| Whether or not the current user has already upvoted this subject. |
DiscussionCommentConnection
The connection type for DiscussionComment.
Felder für DiscussionCommentConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DiscussionCommentEdge
An edge in a connection.
Felder für DiscussionCommentEdge
| Name | BESCHREIBUNG |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DiscussionConnection
The connection type for Discussion.
Felder für DiscussionConnection
| Name | BESCHREIBUNG |
|---|---|
| A list of edges. |
| A list of nodes. |