random topic shouts query, published date filter in random tops (#113)

Co-authored-by: Igor Lobanov <igor.lobanov@onetwotrip.com>
This commit is contained in:
Igor Lobanov
2023-12-21 00:53:53 +01:00
committed by GitHub
parent ff834987d4
commit f395832d32
3 changed files with 58 additions and 8 deletions

View File

@@ -264,6 +264,11 @@ type MySubscriptionsQueryResult {
authors: [Author]!
}
type RandomTopicShoutsQueryResult {
topic: Topic!
shouts: [Shout]!
}
type Query {
# inbox
loadChats( limit: Int, offset: Int): Result! # your chats
@@ -282,6 +287,7 @@ type Query {
loadShout(slug: String, shout_id: Int): Shout
loadShouts(options: LoadShoutsOptions): [Shout]!
loadRandomTopShouts(params: LoadRandomTopShoutsParams): [Shout]!
loadRandomTopicShouts(limit: Int!): RandomTopicShoutsQueryResult!
loadUnratedShouts(limit: Int!): [Shout]!
loadDrafts: [Shout]!
loadReactionsBy(by: ReactionBy!, limit: Int, offset: Int): [Reaction]!