DestroyComment
Removed a comment from a thread. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
DestroyComment(
id: ID!
commentableType: CommentableType
): ID
Arguments
DestroyComment.id ● ID! non-null scalar
The ID of the comment.
DestroyComment.commentableType ● CommentableType enum
The type of the comment's parent thread to destory, based on the thread's location, e.g. discussion board, assignment, widget thread, etc.
Type
ID scalar
The
IDscalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as"4") or integer (such as4) input value will be accepted as an ID.
Examples
Query:
DestroyComment(
$id: ID!,
$commentableType: CommentableType
) {
DestroyComment(
id: $id,
commentableType: $commentableType
)
}
Variables:
{
"id": "0e99a117-e3b6-40a6-867c-6b3bbc166b41",
"commentableType": "thread"
}
Response:
{
"data": {
"DestroyComment": "0e99a117-e3b6-40a6-867c-6b3bbc166b41"
}
}