From af0c7fa712b54bcb5b4f9e849c807ab5c042864d Mon Sep 17 00:00:00 2001 From: Untone Date: Wed, 6 Mar 2024 16:01:46 +0300 Subject: [PATCH] get-my-shout-fix --- src/graphql/query/core/article-my.ts | 75 +++++++++++++++------------- 1 file changed, 39 insertions(+), 36 deletions(-) diff --git a/src/graphql/query/core/article-my.ts b/src/graphql/query/core/article-my.ts index 1399efe0..dcd41ea2 100644 --- a/src/graphql/query/core/article-my.ts +++ b/src/graphql/query/core/article-my.ts @@ -3,48 +3,51 @@ import { gql } from '@urql/core' export default gql` query GetMyShout($shout_id: Int!) { get_my_shout(shout_id: $shout_id) { - id - title - lead - description - subtitle - slug - layout - cover - cover_caption - body - media - updated_by { - id - name - slug - pic - created_at - } - # community - main_topic - topics { + error + shout { id title + lead + description + subtitle + slug + layout + cover + cover_caption body - slug - stat { - shouts - authors - followers + media + updated_by { + id + name + slug + pic + created_at + } + # community + main_topic + topics { + id + title + body + slug + stat { + shouts + authors + followers + } + } + authors { + id + name + slug + pic + created_at } - } - authors { - id - name - slug - pic created_at + updated_at + published_at + featured_at } - created_at - updated_at - published_at - featured_at } } `