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": "ff8d997c50b14223d66a6144"
}

Response

{
"messageFlag": {
"_id": "947eda5ae70ed35618cfd694",
"created": 1721774546341,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "46dce70933b624b6c5233ddc"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "3b077770b367b83e0d35ce31",
"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!