updateConversationReadState

Advance the read cursor of the caller to a message of the conversation when the user has seen messages; the cursor never moves backwards.

Arguments

  • conversationIdID!required

  • inputUpdateConversationReadStateInput!required

  • input.messageIdID!required

    Advances the read cursor to this message; an older message does not move it backward.

Responses

mutation UpdateConversationReadState($conversationId: ID!, $input: UpdateConversationReadStateInput!) {  updateConversationReadState(conversationId: $conversationId, input: $input) {    conversationId    lastReadMessageId    unreadCount  }}
{  "data": {    "updateConversationReadState": {      "conversationId": "string",      "lastReadMessageId": "string",      "unreadCount": 0    }  }}

The ConversationReadState! in data.updateConversationReadState.