update api

This commit is contained in:
tonyrewin 2022-12-05 12:19:13 +03:00
parent 2631933a1a
commit 3c9db8b198
3 changed files with 4 additions and 3 deletions

View File

@ -1,7 +1,7 @@
import { gql } from '@urql/core'
export default gql`
mutation FollowQuery($what: String!, $slug: String!) {
mutation FollowQuery($what: FollowingEntity!, $slug: String!) {
follow(what: $what, slug: $slug) {
error
}

View File

@ -1,7 +1,7 @@
import { gql } from '@urql/core'
export default gql`
mutation UnfollowQuery($what: String!, $slug: String!) {
mutation UnfollowQuery($what: FollowingEntity!, $slug: String!) {
unfollow(what: $what, slug: $slug) {
error
}

View File

@ -78,6 +78,7 @@ export type ChatMember = {
id: Scalars['Int']
lastSeen?: Maybe<Scalars['DateTime']>
name: Scalars['String']
online?: Maybe<Scalars['Boolean']>
slug: Scalars['String']
userpic?: Maybe<Scalars['String']>
}
@ -139,7 +140,7 @@ export type LoadShoutsOptions = {
}
export type Message = {
author: Scalars['String']
author: Scalars['Int']
body: Scalars['String']
chatId: Scalars['String']
createdAt: Scalars['Int']