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": "2e9cc8a407d7171c96693f14"
}
Response
{
"messageMarkAsRead": {
"_id": "87f0228c062c98d9ffe01724",
"created": 1756488534386,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "23279125229e7abd68ace22c"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "85f73b7664899b681ffcdb1f",
"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. |