gql-updates

This commit is contained in:
Untone 2023-11-16 18:17:48 +03:00
parent 46810edaae
commit 6dcc4f37d3
3 changed files with 14 additions and 5 deletions

View File

@ -8,9 +8,9 @@ export default gql`
id id
body body
author author
createdAt created_at
replyTo reply_to
updatedAt updated_at
} }
} }
} }

View File

@ -0,0 +1,9 @@
import { gql } from '@urql/core'
export default gql`
mutation MarkAsReadMutation($message_id: Int!, $chat_id: String!) {
markAsRead(message_id: $message_id, chat_id: $chat_id) {
error
}
}
`

View File

@ -8,9 +8,9 @@ export default gql`
author author
body body
replyTo replyTo
createdAt created_at
id id
updatedAt updated_at
replyTo replyTo
} }
} }