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
body
author
createdAt
replyTo
updatedAt
created_at
reply_to
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
body
replyTo
createdAt
created_at
id
updatedAt
updated_at
replyTo
}
}