diff --git a/src/graphql/client/core.ts b/src/graphql/client/core.ts index 569885bb..008915f3 100644 --- a/src/graphql/client/core.ts +++ b/src/graphql/client/core.ts @@ -177,7 +177,7 @@ export const apiClient = { getDrafts: async (): Promise => { const response = await apiClient.private.query(draftsLoad, {}).toPromise() console.debug('[graphql.client.core] getDrafts:', response) - return response.data.load_shouts_drafts + return response.data.get_shouts_drafts }, createReaction: async (input: ReactionInput) => { const response = await apiClient.private.mutation(reactionCreate, { reaction: input }).toPromise() diff --git a/src/graphql/query/core/articles-load-drafts.ts b/src/graphql/query/core/articles-load-drafts.ts index af33cf9a..ae425df4 100644 --- a/src/graphql/query/core/articles-load-drafts.ts +++ b/src/graphql/query/core/articles-load-drafts.ts @@ -2,7 +2,7 @@ import { gql } from '@urql/core' export default gql` query LoadDraftsQuery { - load_shouts_drafts { + get_shouts_drafts { id title subtitle @@ -23,6 +23,13 @@ export default gql` followers } } + created_by { + id + name + slug + pic + created_at + } authors { id name @@ -35,7 +42,6 @@ export default gql` featured_at stat { viewed - rating commented }