add top shouts pagination

This commit is contained in:
knst-kotov
2021-12-17 19:14:31 +01:00
parent e3bc1c0c38
commit e368ebf4e9
3 changed files with 31 additions and 32 deletions

View File

@@ -160,10 +160,10 @@ type Query {
getShoutComments(slug: String!): [Comment]!
# mainpage
topViewed(limit: Int): [Shout]!
topMonth(limit: Int): [Shout]!
topOverall(limit: Int): [Shout]!
recents(limit: Int): [Shout]!
topViewed(page: Int!, size: Int!): [Shout]!
topMonth(page: Int!, size: Int!): [Shout]!
topOverall(page: Int!, size: Int!): [Shout]!
recents(page: Int!, size: Int!): [Shout]!
# topics
topicsBySlugs(slugs: [String]): [Topic]!