Mutations
addDiscussionComment
Adds a comment to a Discussion, possibly as a reply to another comment.
Поля ввода для addDiscussionComment
input(AddDiscussionCommentInput!)
Возвращаемые поля для addDiscussionComment
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created discussion comment. |
addDiscussionPollVote
Vote for an option in a discussion poll.
Поля ввода для addDiscussionPollVote
input(AddDiscussionPollVoteInput!)
Возвращаемые поля для addDiscussionPollVote
| Имя. | Description |
|---|---|
| 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.
Поля ввода для addUpvote
input(AddUpvoteInput!)
Возвращаемые поля для addUpvote
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
closeDiscussion
Close a discussion.
Поля ввода для closeDiscussion
input(CloseDiscussionInput!)
Возвращаемые поля для closeDiscussion
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was closed. |
createDiscussion
Create a discussion.
Поля ввода для createDiscussion
input(CreateDiscussionInput!)
Возвращаемые поля для createDiscussion
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was just created. |
deleteDiscussion
Delete a discussion and all of its replies.
Поля ввода для deleteDiscussion
input(DeleteDiscussionInput!)
Возвращаемые поля для deleteDiscussion
| Имя. | Description |
|---|---|
| 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.
Поля ввода для deleteDiscussionComment
input(DeleteDiscussionCommentInput!)
Возвращаемые поля для deleteDiscussionComment
| Имя. | Description |
|---|---|
| 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.
Поля ввода для markDiscussionCommentAsAnswer
Возвращаемые поля для markDiscussionCommentAsAnswer
| Имя. | Description |
|---|---|
| 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.
Поля ввода для removeUpvote
input(RemoveUpvoteInput!)
Возвращаемые поля для removeUpvote
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
reopenDiscussion
Reopen a discussion.
Поля ввода для reopenDiscussion
input(ReopenDiscussionInput!)
Возвращаемые поля для reopenDiscussion
| Имя. | Description |
|---|---|
| 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.
Поля ввода для unmarkDiscussionCommentAsAnswer
Возвращаемые поля для unmarkDiscussionCommentAsAnswer
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that includes the comment. |
updateDiscussion
Update a discussion.
Поля ввода для updateDiscussion
input(UpdateDiscussionInput!)
Возвращаемые поля для updateDiscussion
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion. |
updateDiscussionComment
Update the contents of a comment on a Discussion.
Поля ввода для updateDiscussionComment
input(UpdateDiscussionCommentInput!)
Возвращаемые поля для updateDiscussionComment
| Имя. | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion comment. |
Objects
Discussion
A discussion in a repository.
Discussion Реализует
Поля для Discussion
| Имя. | Description |
|---|---|
| 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. Аргументы для
|
| 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. Аргументы для
|
| 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. Аргументы для
|
| 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. |
|