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")
|
@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
|
offset = page * size
|
||||||
reactions = []
|
reactions = []
|
||||||
with local_session() as session:
|
with local_session() as session:
|
||||||
for slug in shoutslugs:
|
for slug in shouts:
|
||||||
reactions += (
|
reactions += (
|
||||||
session.query(Reaction)
|
session.query(Reaction)
|
||||||
.filter(Reaction.shout == slug)
|
.filter(Reaction.shout == slug)
|
||||||
|
|
|
@ -261,7 +261,7 @@ type Query {
|
||||||
getCommunities: [Community]! # all
|
getCommunities: [Community]! # all
|
||||||
|
|
||||||
# search
|
# search
|
||||||
searchQuery(q: String, page: Int, size: Int): Shout[]
|
searchQuery(q: String, page: Int, size: Int): [Shout]
|
||||||
}
|
}
|
||||||
|
|
||||||
############################################ Subscription
|
############################################ Subscription
|
||||||
|
|
Loading…
Reference in New Issue
Block a user