Skip to main content

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
archived
isSystem
content
attachments {
_id
uri
title
}
read
orderId
orderIncId
uri
via
}
}

Variables​

{
"messageRef": "22ed7f9f391c1d4d1468af55"
}

Response​

{
"message": {
"_id": "28197de5cb3aa38144a2a3e4",
"created": 1761688186424,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "784fb4622d5bd17c0e7df101"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"archived": true,
"isSystem": true,
"content": "example",
"attachments": [
{
"_id": "e3cea56d6311ed95a92a9acb",
"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 retrieve.

Returns​

Message