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": "e6ed7e132cedf240b1963466"
}
Response
{
"messageFlag": {
"_id": "b411e596a4196638c254be5b",
"created": 1762650292354,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "26eb54b66405ce4585599341"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "54763cbfdae88b4abb7e3e91",
"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
| Name | Type | Description |
|---|---|---|
messageRef | ID! | Reference ID of the message to flag. |