message Query
Description
Retrieves a single message by its reference ID.
query message($messageRef: ID!) {
message(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": "b103a16a1d4d198687792a65"
}
Response
{
"message": {
"_id": "7560d631400c73686ab073e6",
"created": 1740436972070,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "1a389ee48189fc366f706aab"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "e871411a6d2a734bf09b683f",
"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 retrieve. |