join-cond

This commit is contained in:
Untone 2023-12-03 00:36:22 +03:00
parent a6df648af1
commit e2271e38e1

View File

@ -135,7 +135,7 @@ async def load_shouts_by(_, info, options):
q = ( q = (
select(Shout, Author) select(Shout, Author)
.options( .options(
joinedload(Shout.authors), joinedload(Shout.authors, Shout.authors.contains(Author.id)),
joinedload(Shout.topics), joinedload(Shout.topics),
) )
.select_from(Shout) .select_from(Shout)