search-result-schema-fix
All checks were successful
deploy / deploy (push) Successful in 1m21s

This commit is contained in:
2023-12-19 15:18:58 +03:00
parent 71000aad35
commit 5aa8258f16
2 changed files with 21 additions and 12 deletions

View File

@@ -290,6 +290,12 @@ type Result {
communities: [Community]
}
type SearchResult {
slug: String!
title: String!
score: Float!
}
# Мутации
type Mutation {
@@ -354,7 +360,7 @@ type Query {
get_shout(slug: String, shout_id: Int): Shout
load_shouts_followed(follower_id: Int!, limit: Int, offset: Int): [Shout] # userReactedShouts
load_shouts_by(options: LoadShoutsOptions): [Shout]
load_shouts_search(text: String!, limit: Int, offset: Int): [Shout]
load_shouts_search(text: String!, limit: Int, offset: Int): [SearchResult]
load_shouts_feed(options: LoadShoutsOptions): [Shout]
load_shouts_unrated(limit: Int, offset: Int): [Shout]
load_shouts_random_top(options: LoadShoutsOptions): [Shout]