diff --git a/resolvers/reactions.py b/resolvers/reactions.py index de154f24..25cf0636 100644 --- a/resolvers/reactions.py +++ b/resolvers/reactions.py @@ -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) diff --git a/schema.graphql b/schema.graphql index 411be838..e3ac1f0e 100644 --- a/schema.graphql +++ b/schema.graphql @@ -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