diff --git a/resolvers/reader.py b/resolvers/reader.py index 51ef8f84..e76b8f0a 100644 --- a/resolvers/reader.py +++ b/resolvers/reader.py @@ -135,7 +135,7 @@ async def load_shouts_by(_, info, options): q = ( select(Shout, Author) .options( - joinedload(Shout.authors, Shout.authors.contains(Author.id)), + joinedload(Shout.authors,Author.id.in_(Shout.authors)), joinedload(Shout.topics), ) .select_from(Shout)