Mutations
addDiscussionComment
Adds a comment to a Discussion, possibly as a reply to another comment.
Input fields for addDiscussionComment
input(AddDiscussionCommentInput!)
Return fields for addDiscussionComment
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The newly created discussion comment. |
addDiscussionPollVote
Vote for an option in a discussion poll.
Input fields for addDiscussionPollVote
input(AddDiscussionPollVoteInput!)
Return fields for addDiscussionPollVote
| Name | 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.
Input fields for addUpvote
input(AddUpvoteInput!)
Return fields for addUpvote
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
closeDiscussion
Close a discussion.
Input fields for closeDiscussion
input(CloseDiscussionInput!)
Return fields for closeDiscussion
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that was closed. |
createDiscussion
Create a discussion.
Input fields for createDiscussion
input(CreateDiscussionInput!)
Return fields for createDiscussion
| Name | 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.
Input fields for deleteDiscussion
input(DeleteDiscussionInput!)
Return fields for deleteDiscussion
| Name | 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.
Input fields for deleteDiscussionComment
input(DeleteDiscussionCommentInput!)
Return fields for deleteDiscussionComment
| Name | 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.
Input fields for markDiscussionCommentAsAnswer
Return fields for markDiscussionCommentAsAnswer
| Name | 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.
Input fields for removeUpvote
input(RemoveUpvoteInput!)
Return fields for removeUpvote
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The votable subject. |
reopenDiscussion
Reopen a discussion.
Input fields for reopenDiscussion
input(ReopenDiscussionInput!)
Return fields for reopenDiscussion
| Name | 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.
Input fields for unmarkDiscussionCommentAsAnswer
Return fields for unmarkDiscussionCommentAsAnswer
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The discussion that includes the comment. |
updateDiscussion
Update a discussion.
Input fields for updateDiscussion
input(UpdateDiscussionInput!)
Return fields for updateDiscussion
| Name | Description |
|---|---|
| A unique identifier for the client performing the mutation. |
| The modified discussion. |
updateDiscussionComment
Update the contents of a comment on a Discussion.
Input fields for updateDiscussionComment
input(UpdateDiscussionCommentInput!)
Return fields for updateDiscussionComment
| Name | Description |
|---|---|