This commit is contained in:
parent
8b3cfebc47
commit
fc774adb9f
|
@ -220,6 +220,6 @@ def get_author_followers(_, _info, slug: str):
|
||||||
|
|
||||||
|
|
||||||
@query.field('search_authors')
|
@query.field('search_authors')
|
||||||
def search_authors(_, info, t: str):
|
def search_authors(_, info, what: str):
|
||||||
q = search(select(Author), t)
|
q = search(select(Author), what)
|
||||||
return get_with_stat(q)
|
return get_with_stat(q)
|
||||||
|
|
|
@ -4,7 +4,7 @@ type Query {
|
||||||
get_author_id(user: String!): Author
|
get_author_id(user: String!): Author
|
||||||
get_authors_all: [Author]
|
get_authors_all: [Author]
|
||||||
load_authors_by(by: AuthorsBy!, limit: Int, offset: Int): [Author]
|
load_authors_by(by: AuthorsBy!, limit: Int, offset: Int): [Author]
|
||||||
search_authors(text: String!): [Author]
|
search_authors(what: String!): [Author]
|
||||||
|
|
||||||
# community
|
# community
|
||||||
get_community: Community
|
get_community: Community
|
||||||
|
|
Loading…
Reference in New Issue
Block a user