Comments Mutations

These mutations allow you to interact with comments data.

comment

Returns: Comment

Arguments

ArgumentTypeDescription
bodyrequiredString!Main content or message body
entityTyperequiredCommentableEntityType!Type classification of the entity
entityTypeIdrequiredID!ID of the entity type
Example Query
mutation(
$body: String!,
$entityType: CommentableEntityType!,
$entityTypeId: ID!
) {
comment(
body: $body,
entityType: $entityType,
entityTypeId: $entityTypeId
) {
id
# Add other fields you need
}
}
Variables
{
"body": "example",
"entityType": {},
"entityTypeId": "1"
}

updateComment

Returns: Comment

Arguments

ArgumentTypeDescription
bodyrequiredString!Main content or message body
idrequiredID!Unique identifier
Example Query
mutation(
$body: String!,
$id: ID!
) {
updateComment(
body: $body,
id: $id
) {
id
# Add other fields you need
}
}
Variables
{
"body": "example",
"id": "1"
}