schema-fix
This commit is contained in:
parent
c85672b209
commit
635be7e6a3
|
@ -130,11 +130,11 @@ async def get_shout_reactions(_, info, slug, page, size):
|
|||
|
||||
|
||||
@query.field("reactionsForShouts")
|
||||
async def get_reactions_for_shouts(_, info, shoutslugs, page, size):
|
||||
async def get_reactions_for_shouts(_, info, shouts, page, size):
|
||||
offset = page * size
|
||||
reactions = []
|
||||
with local_session() as session:
|
||||
for slug in shoutslugs:
|
||||
for slug in shouts:
|
||||
reactions += (
|
||||
session.query(Reaction)
|
||||
.filter(Reaction.shout == slug)
|
||||
|
|
|
@ -261,7 +261,7 @@ type Query {
|
|||
getCommunities: [Community]! # all
|
||||
|
||||
# search
|
||||
searchQuery(q: String, page: Int, size: Int): Shout[]
|
||||
searchQuery(q: String, page: Int, size: Int): [Shout]
|
||||
}
|
||||
|
||||
############################################ Subscription
|
||||
|
|
Loading…
Reference in New Issue
Block a user