Mutation
mutation MarkConversationRead($input: MarkConversationReadInput!) {
markConversationRead(input: $input) {
clientMutationId
conversation {
avatarUrls
bookmarkedAt
id
lastChatAt
lastMessage {
actorType
artifact {
__typename
}
assets {
__typename
}
chatCard {
__typename
}
conversation {
__typename
}
createdAt
}
lastReadMessage {
actorType
artifact {
__typename
}
assets {
__typename
}
chatCard {
__typename
}
createdAt
lastReplyAt
}
}
errors
unreadCount
}
}Variables
{
"input": {
"conversationId": "id"
}
}Response
{
"data": {
"markConversationRead": {
"clientMutationId": "string",
"conversation": {
"avatarUrls": [
"string"
],
"bookmarkedAt": "value",
"id": "id",
"lastChatAt": "value",
"lastMessage": {
"actorType": "COHOST",
"artifact": {
"__typename": "Artifact"
},
"assets": [
{
"__typename": "Asset"
}
],
"chatCard": {
"__typename": "ChatCard"
},
"conversation": {
"__typename": "PublicConversation"
},
"createdAt": "value"
},
"lastReadMessage": {
"actorType": "COHOST",
"artifact": {
"__typename": "Artifact"
},
"assets": [
{
"__typename": "Asset"
}
],
"chatCard": {
"__typename": "ChatCard"
},
"createdAt": "value",
"lastReplyAt": "value"
}
},
"errors": [
"string"
],
"unreadCount": 1
}
}
}Mutations
markConversationRead
Mark all messages in a space chat as read for the viewer
MUTATION
markConversationRead(input: MarkConversationReadInput!): MarkConversationReadPayloadArguments
input
MarkConversationReadInput!
required
Parameters for MarkConversationRead
Returns
clientMutationId
String
A unique identifier for the client performing the mutation.
conversation
errors
[String!]!
unreadCount
Int
Updated unread count (null when the viewer has no membership in the conversation)
Mutation
mutation MarkConversationRead($input: MarkConversationReadInput!) {
markConversationRead(input: $input) {
clientMutationId
conversation {
avatarUrls
bookmarkedAt
id
lastChatAt
lastMessage {
actorType
artifact {
__typename
}
assets {
__typename
}
chatCard {
__typename
}
conversation {
__typename
}
createdAt
}
lastReadMessage {
actorType
artifact {
__typename
}
assets {
__typename
}
chatCard {
__typename
}
createdAt
lastReplyAt
}
}
errors
unreadCount
}
}Variables
{
"input": {
"conversationId": "id"
}
}Response
{
"data": {
"markConversationRead": {
"clientMutationId": "string",
"conversation": {
"avatarUrls": [
"string"
],
"bookmarkedAt": "value",
"id": "id",
"lastChatAt": "value",
"lastMessage": {
"actorType": "COHOST",
"artifact": {
"__typename": "Artifact"
},
"assets": [
{
"__typename": "Asset"
}
],
"chatCard": {
"__typename": "ChatCard"
},
"conversation": {
"__typename": "PublicConversation"
},
"createdAt": "value"
},
"lastReadMessage": {
"actorType": "COHOST",
"artifact": {
"__typename": "Artifact"
},
"assets": [
{
"__typename": "Asset"
}
],
"chatCard": {
"__typename": "ChatCard"
},
"createdAt": "value",
"lastReplyAt": "value"
}
},
"errors": [
"string"
],
"unreadCount": 1
}
}
}⌘I