Mutations
addDiscussionComment
Adds a comment to a Discussion, possibly as a reply to another comment.
addDiscussionComment에 대한 입력 필드
input(AddDiscussionCommentInput!)
addDiscussionComment에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
closeDiscussion
Close a discussion.
closeDiscussion에 대한 입력 필드
input(CloseDiscussionInput!)
closeDiscussion에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was closed. |
createDiscussion
Create a discussion.
createDiscussion에 대한 입력 필드
input(CreateDiscussionInput!)
createDiscussion에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
reopenDiscussion
Reopen a discussion.
reopenDiscussion에 대한 입력 필드
input(ReopenDiscussionInput!)
reopenDiscussion에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that includes the comment. |
updateDiscussion
Update a discussion.
updateDiscussion에 대한 입력 필드
input(UpdateDiscussionInput!)
updateDiscussion에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| 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에 대한 반환 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion comment. |
Objects
Discussion
A discussion in a repository.
Discussion 구현
Discussion에 대한 필드
| 이름 | 설명 |
|---|---|
| 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. |
| 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 구현
DiscussionCategory에 대한 필드
| 이름 | 설명 |
|---|---|
| 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.
DiscussionCategoryConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| 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.
DiscussionCategoryEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DiscussionComment
A comment on a discussion.
DiscussionComment 구현
DiscussionComment에 대한 필드
| 이름 | 설명 |
|---|---|
| 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.
|
| 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. |
| 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.
DiscussionCommentConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| 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.
DiscussionCommentEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DiscussionConnection
The connection type for Discussion.
DiscussionConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DiscussionEdge
An edge in a connection.
DiscussionEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
DiscussionPoll
A poll for a discussion.
DiscussionPoll 구현
DiscussionPoll에 대한 필드
| 이름 | 설명 |
|---|---|
| The discussion that this poll belongs to. |
| The Node ID of the DiscussionPoll object. |
| The options for this poll.
|
| The question that is being asked by this poll. |
| The total number of votes that have been cast for this poll. |
| Indicates if the viewer has permission to vote in this poll. |
| Indicates if the viewer has voted for any option in this poll. |
DiscussionPollOption
An option for a discussion poll.
DiscussionPollOption 구현
DiscussionPollOption에 대한 필드
| 이름 | 설명 |
|---|---|
| The Node ID of the DiscussionPollOption object. |
| The text for this option. |
| The discussion poll that this option belongs to. |
| The total number of votes that have been cast for this option. |
| Indicates if the viewer has voted for this option in the poll. |
DiscussionPollOptionConnection
The connection type for DiscussionPollOption.
DiscussionPollOptionConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
DiscussionPollOptionEdge
An edge in a connection.
DiscussionPollOptionEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
PinnedDiscussion
A Pinned Discussion is a discussion pinned to a repository's index page.
PinnedDiscussion 구현
PinnedDiscussion에 대한 필드
| 이름 | 설명 |
|---|---|
| Identifies the date and time when the object was created. |
| Identifies the primary key from the database. |
| The discussion that was pinned. |
| Color stops of the chosen gradient. |
| The Node ID of the PinnedDiscussion object. |
| Background texture pattern. |
| The actor that pinned this discussion. |
| Preconfigured background gradient option. |
| The repository associated with this node. |
| Identifies the date and time when the object was last updated. |
PinnedDiscussionConnection
The connection type for PinnedDiscussion.
PinnedDiscussionConnection에 대한 필드
| 이름 | 설명 |
|---|---|
| A list of edges. |
| A list of nodes. |
| Information to aid in pagination. |
| Identifies the total count of items in the connection. |
PinnedDiscussionEdge
An edge in a connection.
PinnedDiscussionEdge에 대한 필드
| 이름 | 설명 |
|---|---|
| A cursor for use in pagination. |
| The item at the end of the edge. |
Interfaces
RepositoryDiscussionAuthor
Represents an author of discussions in repositories.
RepositoryDiscussionAuthor은(는) 다음과 같이 구현됩니다.
RepositoryDiscussionAuthor에 대한 필드
| 이름 | 설명 |
|---|---|
| Discussions this user has started.
|
RepositoryDiscussionCommentAuthor
Represents an author of discussion comments in repositories.
RepositoryDiscussionCommentAuthor은(는) 다음과 같이 구현됩니다.
RepositoryDiscussionCommentAuthor에 대한 필드
| 이름 | 설명 |
|---|---|
| Discussion comments this user has authored.
|
Votable
A subject that may be upvoted.
Votable은(는) 다음과 같이 구현됩니다.
Votable에 대한 필드
| 이름 | 설명 |
|---|---|
| Number of upvotes that this subject has received. |
| Whether or not the current user can add or remove an upvote on this subject. |
| Whether or not the current user has already upvoted this subject. |
Enums
DiscussionCloseReason
The possible reasons for closing a discussion.
DiscussionCloseReason의 값
| 이름 | 설명 |
|---|---|
DUPLICATE | The discussion is a duplicate of another. |
OUTDATED | The discussion is no longer relevant. |
RESOLVED | The discussion has been resolved. |
DiscussionOrderField
Properties by which discussion connections can be ordered.
DiscussionOrderField의 값
| 이름 | 설명 |
|---|---|
CREATED_AT | Order discussions by creation time. |
UPDATED_AT | Order discussions by most recent modification time. |
DiscussionPollOptionOrderField
Properties by which discussion poll option connections can be ordered.
DiscussionPollOptionOrderField의 값
| 이름 | 설명 |
|---|---|
AUTHORED_ORDER | Order poll options by the order that the poll author specified when creating the poll. |
VOTE_COUNT | Order poll options by the number of votes it has. |
DiscussionState
The possible states of a discussion.
DiscussionState의 값
| 이름 | 설명 |
|---|---|
CLOSED | A discussion that has been closed. |
OPEN | A discussion that is open. |
DiscussionStateReason
The possible state reasons of a discussion.
DiscussionStateReason의 값
| 이름 | 설명 |
|---|---|
DUPLICATE | The discussion is a duplicate of another. |
OUTDATED | The discussion is no longer relevant. |
REOPENED | The discussion was reopened. |
RESOLVED | The discussion has been resolved. |
PinnedDiscussionGradient
Preconfigured gradients that may be used to style discussions pinned within a repository.
PinnedDiscussionGradient의 값
| 이름 | 설명 |
|---|---|
BLUE_MINT | A gradient of blue to mint. |
BLUE_PURPLE | A gradient of blue to purple. |
PINK_BLUE | A gradient of pink to blue. |
PURPLE_CORAL | A gradient of purple to coral. |
RED_ORANGE | A gradient of red to orange. |
PinnedDiscussionPattern
Preconfigured background patterns that may be used to style discussions pinned within a repository.
PinnedDiscussionPattern의 값
| 이름 | 설명 |
|---|---|
CHEVRON_UP | An upward-facing chevron pattern. |
DOT | A hollow dot pattern. |
DOT_FILL | A solid dot pattern. |
HEART_FILL | A heart pattern. |
PLUS | A plus sign pattern. |
ZAP | A lightning bolt pattern. |
Input objects
AddDiscussionCommentInput
Autogenerated input type of AddDiscussionComment.
AddDiscussionCommentInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The contents of the comment. |
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion to comment on. |
| The Node ID of the discussion comment within this discussion to reply to. |
AddDiscussionPollVoteInput
Autogenerated input type of AddDiscussionPollVote.
AddDiscussionPollVoteInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion poll option to vote for. |
AddUpvoteInput
Autogenerated input type of AddUpvote.
AddUpvoteInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion or comment to upvote. |
CloseDiscussionInput
Autogenerated input type of CloseDiscussion.
CloseDiscussionInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| ID of the discussion to be closed. |
| The reason why the discussion is being closed. |
CreateDiscussionInput
Autogenerated input type of CreateDiscussion.
CreateDiscussionInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The body of the discussion. |
| The id of the discussion category to associate with this discussion. |
| A unique identifier for the client performing the mutation. |
| The id of the repository on which to create the discussion. |
| The title of the discussion. |
DeleteDiscussionCommentInput
Autogenerated input type of DeleteDiscussionComment.
DeleteDiscussionCommentInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node id of the discussion comment to delete. |
DeleteDiscussionInput
Autogenerated input type of DeleteDiscussion.
DeleteDiscussionInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The id of the discussion to delete. |
DiscussionOrder
Ways in which lists of discussions can be ordered upon return.
DiscussionOrder에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The direction in which to order discussions by the specified field. |
| The field by which to order discussions. |
DiscussionPollOptionOrder
Ordering options for discussion poll option connections.
DiscussionPollOptionOrder에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The ordering direction. |
| The field to order poll options by. |
MarkDiscussionCommentAsAnswerInput
Autogenerated input type of MarkDiscussionCommentAsAnswer.
MarkDiscussionCommentAsAnswerInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion comment to mark as an answer. |
RemoveUpvoteInput
Autogenerated input type of RemoveUpvote.
RemoveUpvoteInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion or comment to remove upvote. |
ReopenDiscussionInput
Autogenerated input type of ReopenDiscussion.
ReopenDiscussionInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| ID of the discussion to be reopened. |
UnmarkDiscussionCommentAsAnswerInput
Autogenerated input type of UnmarkDiscussionCommentAsAnswer.
UnmarkDiscussionCommentAsAnswerInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion comment to unmark as an answer. |
UpdateDiscussionCommentInput
Autogenerated input type of UpdateDiscussionComment.
UpdateDiscussionCommentInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The new contents of the comment body. |
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion comment to update. |
UpdateDiscussionInput
Autogenerated input type of UpdateDiscussion.
UpdateDiscussionInput에 대한 입력 필드
| 이름 | 설명 |
|---|---|
| The new contents of the discussion body. |
| The Node ID of a discussion category within the same repository to change this discussion to. |
| A unique identifier for the client performing the mutation. |
| The Node ID of the discussion to update. |
| The new discussion title. |