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": "2c2a9c2b9f0e9bee19135dc8"
}
Response
{
"messageMarkAsRead": {
"_id": "1ca4e95908c5b06bb92a9be5",
"created": 1738030824549,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "9d9c76545632ee729446301c"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "6594807b6e9f74d2984974c2",
"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. |