add getShoutComments

This commit is contained in:
knst-kotov
2021-12-06 17:50:49 +03:00
parent bf4df89bad
commit ea8fffc25d
2 changed files with 19 additions and 2 deletions

View File

@@ -136,10 +136,11 @@ type Query {
getMessages(count: Int = 100, page: Int = 1): [Message!]!
# shouts
getShoutBySlug(slug: String!): Shout! # NOTE: with .comments: Comments[]
getShoutBySlug(slug: String!): Shout!
shoutsByTopic(topic: String!, limit: Int!): [Shout]!
shoutsByAuthor(author: String!, limit: Int!): [Shout]!
shoutsByCommunity(community: String!, limit: Int!): [Shout]!
getShoutComments(shout_id: Int!): [Comment]!
# mainpage
topViewed(limit: Int): [Shout]!