fix-mutation

This commit is contained in:
Untone 2023-11-17 08:01:23 +03:00
parent de097240e3
commit 99f39abf12

View File

@ -1,8 +1,8 @@
import { gql } from '@urql/core' import { gql } from '@urql/core'
export default gql` export default gql`
mutation createMessage($chat: String!, $body: String!, $reply_to: Int) { mutation createMessage($chat_id: String!, $body: String!, $reply_to: Int) {
createMessage(chat: $chat, body: $body, reply_to: $reply_to) { createMessage(chat_id: $chat_id, body: $body, reply_to: $reply_to) {
error error
message { message {
id id