Skip to main content

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": "715a94eee5f1b4b08b4dcf5c"
}

Response

{
"messageMarkAsRead": {
"_id": "971871b1844875bdccd6eae2",
"created": 1755524808025,
"sender": {
"name": "example",
"alias": "example",
"email": "email@example.com",
"ref": "a17c0161fbcbaf7064e733dd"
},
"subject": "example",
"message": "example",
"fromBuyer": true,
"flagged": true,
"content": "example",
"attachments": [
{
"_id": "d7848424da85ed95dc9fedbf",
"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 mark as read.

Returns

Message!