Delete conversation message

deleteConversationMessage(conversationId: ID!, messageId: ID!): DeletionResult!

Arguments

ArgumentTypeRequiredDescription
conversationIdID!Yes
messageIdID!YesMessage to soft-delete; it must belong to the conversation.

Response

Returns DeletionResult!. Open the type for its fields and nested types.

FieldTypeDescription
okBoolean!Always true: the deletion was accepted.

Types marked with ! cannot be null. Lists use [Type] notation. The type index lists all published input and response types.

Example

graphql
mutation DeleteConversationMessage($conversationId: ID!, $messageId: ID!) {
  deleteConversationMessage(conversationId: $conversationId, messageId: $messageId) {
    ok
  }
}
json
{
  "conversationId": "00000000-0000-4000-8000-000000000001",
  "messageId": "00000000-0000-4000-8000-000000000001"
}