DestroyThread
Removes a thread from a forum. The results of this mutation can be affected by providing an authToken header to set a user for the operation.
DestroyThread(
id: ID!
commentableType: CommentableType
): ID
Arguments
DestroyThread.id
● ID!
non-null scalar
The ID of the thread.
DestroyThread.commentableType
● CommentableType
enum
The type of thread to destroy, based on the thread's location, e.g. discussion board, assignment, widget thread, etc.
Type
ID
scalar
The
ID
scalar 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:
DestroyThread(
$id: ID!,
$commentableType: CommentableType
) {
DestroyThread(
id: $id,
commentableType: $commentableType
)
}
Variables:
{
"id": "58ccb96c-8e90-4464-86e0-f284442981df",
"commentableType": "thread"
}
Response:
{
"data": {
"DestroyThread": "58ccb96c-8e90-4464-86e0-f284442981df"
}
}