From 8914646f6188004794179f4ae0a2269d1a7bc556 Mon Sep 17 00:00:00 2001 From: tonyrewin Date: Sun, 13 Nov 2022 07:21:09 +0300 Subject: [PATCH] schema-fix --- schema.graphql | 26 ++++++++++++-------------- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git a/schema.graphql b/schema.graphql index 2dbe82d6..bc0c9202 100644 --- a/schema.graphql +++ b/schema.graphql @@ -32,10 +32,21 @@ type ChatMember { # TODO: add more } +type AuthorStat { + followings: Int + followers: Int + rating: Int +} + + type Author { + id: Int! slug: String! - name: String + name: String! userpic: String + caption: String # only for full shout + bio: String + links: [String] stat: AuthorStat roles: [Role] # in different communities lastSeen: DateTime @@ -278,9 +289,6 @@ type Query { # search searchQuery(q: String, offset: Int!, limit: Int!): [Shout] - - # migrate - markdownBody(body: String!): String } ############################################ Subscription @@ -403,16 +411,6 @@ type Reaction { old_thread: String } -type Author { - id: Int! - slug: String! - name: String! - userpic: String - caption: String # only for full shout - bio: String - links: [String] -} - # is publication type Shout { id: Int!