This commit is contained in:
Igor Lobanov 2022-10-05 14:32:23 +02:00
parent 9a78c859ae
commit 32bbedfa17
2 changed files with 13 additions and 0 deletions

View File

@ -344,6 +344,7 @@ export type Query = {
getUsersBySlugs: Array<Maybe<User>>
isEmailUsed: Scalars['Boolean']
loadChat: Array<Maybe<Message>>
markdownBody: Scalars['String']
myChats: Array<Maybe<ChatResult>>
reactionsByAuthor: Array<Maybe<Reaction>>
reactionsByShout: Array<Maybe<Reaction>>
@ -411,6 +412,10 @@ export type QueryLoadChatArgs = {
size: Scalars['Int']
}
export type QueryMarkdownBodyArgs = {
body: Scalars['String']
}
export type QueryReactionsByAuthorArgs = {
limit: Scalars['Int']
offset: Scalars['Int']

View File

@ -176,6 +176,10 @@ export const apiClient = {
})
.toPromise()
if (response.error) {
log.error('getArticlesForTopics', response.error)
}
return response.data.shoutsByTopics
},
getArticlesForAuthors: async ({
@ -195,6 +199,10 @@ export const apiClient = {
})
.toPromise()
if (response.error) {
log.error('getArticlesForAuthors', response.error)
}
return response.data.shoutsByAuthors
},