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
archived
isSystem
content
attachments {
_id
uri
title
}
read
orderId
orderIncId
uri
via
}
}
Variables
{
"messageRef": "6bb85419fe17f74746e605e9"
}
Response
{
"messageFlag": {
"_id": "2eb7207c861cb0f89a9c4302",
"created": 1731489783056,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "90ed416c7b6f1331c81ce4ff"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"archived": true,
"isSystem": true,
"content": "example",
"attachments": [
{
"_id": "c7d5a8b0304e6a826c399c89",
"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. |