no-my-rate
All checks were successful
Deploy on push / deploy (push) Successful in 6s

This commit is contained in:
2024-11-18 11:31:19 +03:00
parent 821a4c0df1
commit 47a8493824
6 changed files with 104 additions and 59 deletions

View File

@@ -32,6 +32,10 @@ type Query {
load_shouts_search(text: String!, options: LoadShoutsOptions): [SearchResult]
load_shouts_bookmarked(options: LoadShoutsOptions): [Shout]
# rating
get_my_rates_shouts(shouts: [Int!]!): [MyRateShout]
get_my_rates_comments(comments: [Int!]!, shout: Int!): [MyRateComment]
# public feeds
load_shouts_with_topic(slug: String, options: LoadShoutsOptions): [Shout] # topic feed
load_shouts_random_top(options: LoadShoutsOptions): [Shout] # random order, fixed filter, limit offset can be used

View File

@@ -112,7 +112,6 @@ type Stat {
viewed: Int
# followed: Int
last_reacted_at: Int
my_rate: ReactionKind
}
type CommunityStat {
@@ -234,3 +233,15 @@ type NotificationsResult {
total: Int!
error: String
}
type MyRateShout {
shout_id: Int!
my_rate: ReactionKind
}
type MyRateComment {
shout_id: Int
comment_id: Int!
my_rate: ReactionKind
}