Skip to main content

messageFlag Mutation

Description

Flags a message, typically used to mark it as important or requiring attention.

mutation messageFlag($messageRef: ID!) {
messageFlag(messageRef: $messageRef) {
_id
created
sender {
name
alias
email
ref
}
subject
message
fromBuyer
flagged
content
attachments {
_id
uri
title
}
read
orderId
orderIncId
uri
via
}
}

Variables

{
"messageRef": "f48993d3acb67bcea5620b0a"
}

Response

{
"messageFlag": {
"_id": "a4e7b5d7707a5778b286495a",
"created": 1727871355210,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "130e4a3175e40bcc7f465ded"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "a96c335d29723b2f11712aa8",
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"title": "example"
}
],
"read": true,
"orderId": "example",
"orderIncId": 42,
"uri": "https://www.my-common-ground-store.com/release/1763553751/release-artist-release-name",
"via": "example"
}
}

Arguments

NameTypeDescription
messageRefID!Reference ID of the message to flag.

Returns

Message!