From 748e3c6db340cbd235140ad3e3c515d64c24ae9d Mon Sep 17 00:00:00 2001 From: Untone Date: Sun, 3 Dec 2023 00:39:06 +0300 Subject: [PATCH] join-cond-2 --- resolvers/reader.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)