messageMarkAsRead Mutation
Description
Marks a message as read for the current user.
mutation messageMarkAsRead($messageRef: ID!) {
messageMarkAsRead(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": "bd4e4d84b23048d0f3badb1c"
}
Response
{
"messageMarkAsRead": {
"_id": "51e75f735ce7bda198b4d134",
"created": 1750481297098,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "57fe5f09d2b627a4ef004065"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "b6b676fd5cdae18b7cf52078",
"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 mark as read. |