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' import { gql } from '@urql/core'
export default gql` export default gql`
mutation FollowQuery($what: String!, $slug: String!) { mutation FollowQuery($what: FollowingEntity!, $slug: String!) {
follow(what: $what, slug: $slug) { follow(what: $what, slug: $slug) {
error error
} }

View File

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

View File

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