From 7a57c39a75f0782c8c73aca9de9579826b40d80e Mon Sep 17 00:00:00 2001 From: Untone Date: Fri, 23 Feb 2024 22:31:33 +0300 Subject: [PATCH] follows-queries-hotfix --- .../query/core/author-follows-authors.ts | 18 ++++++++++++++++++ .../query/core/author-follows-topics.ts | 16 ++++++++++++++++ src/graphql/query/core/author-follows.ts | 12 ++++++------ 3 files changed, 40 insertions(+), 6 deletions(-) create mode 100644 src/graphql/query/core/author-follows-authors.ts create mode 100644 src/graphql/query/core/author-follows-topics.ts diff --git a/src/graphql/query/core/author-follows-authors.ts b/src/graphql/query/core/author-follows-authors.ts new file mode 100644 index 00000000..39fdc4d8 --- /dev/null +++ b/src/graphql/query/core/author-follows-authors.ts @@ -0,0 +1,18 @@ +import { gql } from '@urql/core' + +export default gql` + query GetAuthorFollowsAuthors($slug: String, $user: String, $author_id: Int) { + get_author_follows_authors(slug: $slug, user: $user, author_id: $author_id) { + id + slug + name + pic + bio + stat { + shouts + authors + followers + } + } + } +` diff --git a/src/graphql/query/core/author-follows-topics.ts b/src/graphql/query/core/author-follows-topics.ts new file mode 100644 index 00000000..efd9a1dd --- /dev/null +++ b/src/graphql/query/core/author-follows-topics.ts @@ -0,0 +1,16 @@ +import { gql } from '@urql/core' + +export default gql` + query GetAuthorFollowsTopics($slug: String, $user: String, $author_id: Int) { + get_author_follows_topics(slug: $slug, user: $user, author_id: $author_id) { + id + slug + title + stat { + shouts + authors + followers + } + } + } +` diff --git a/src/graphql/query/core/author-follows.ts b/src/graphql/query/core/author-follows.ts index 7de7d9c4..ac16b532 100644 --- a/src/graphql/query/core/author-follows.ts +++ b/src/graphql/query/core/author-follows.ts @@ -25,12 +25,12 @@ export default gql` followers } } - communities { - id - slug - name - pic - } + #communities { + # id + # slug + # name + # pic + #} } } `