Skip to main content

RemoveCommentLike

Removes a like from a comment. The results of this mutation can be affected by providing an authToken header to set a user for the operation.

RemoveCommentLike(
commentId: ID!
likeId: ID!
): Boolean!

Directives

authAccess

This requires the current user to be in STUDENT role.

Arguments

RemoveCommentLike.commentId ● ID! non-null scalar

The ID of the comment.

RemoveCommentLike.likeId ● ID! non-null scalar

The ID of the like.

Type

Boolean scalar

The Boolean scalar type represents true or false.

Examples

Run in Postman

Query:

RemoveCommentLike(
$commentId: ID!,
$likeId: ID!
) {
RemoveCommentLike(
commentId: $commentId,
likeId: $likeId
)
}

Variables:

{
"commentId": "58ccb96c-8e90-4464-86e0-f284442981df",
"likeId": "58ccb96c-8e90-4464-86e0-f284442981df"
}

Response:

{
"data": {
"RemoveCommentLike": false
}
}