add authors and subscriptions in Topic stat

This commit is contained in:
knst-kotov
2021-12-15 12:17:16 +03:00
parent 01a974e974
commit a98d5f6ee6
4 changed files with 28 additions and 17 deletions

View File

@@ -170,7 +170,6 @@ type Query {
topicsBySlugs(slugs: [String]): [Topic]!
topicsByCommunity(community: String!): [Topic]!
topicsByAuthor(author: String!): [Topic]!
getTopicAuthors(slug: String!, count: Int!, page: Int!): [User]!
# getOnlineUsers: [User!]!
@@ -335,8 +334,8 @@ type Community {
type TopicStat {
shouts: Int!
views: Int!
subscriptions: Int
authors: Int
subscriptions: Int!
authors: Int!
}
type Topic {