fix-query

This commit is contained in:
tonyrewin 2022-11-02 16:51:57 +03:00
parent 6b53746c5f
commit b8ff05f70a
2 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ export default gql`
users { users {
slug slug
name name
pic userpic
} }
title title
createdAt createdAt

View File

@ -3,11 +3,11 @@ import { gql } from '@urql/core'
export default gql` export default gql`
query LoadMessagesQuery($chatId: String!, $offset: Int, $amount: Int) { query LoadMessagesQuery($chatId: String!, $offset: Int, $amount: Int) {
loadChat(chatId: $chatId, offset: $offset, amount: $amount) { loadChat(chatId: $chatId, offset: $offset, amount: $amount) {
id author
title body
desc createdAt
slug updatedAt
amount seen
} }
} }
` `