joinedload-fix
This commit is contained in:
@@ -142,7 +142,7 @@ async def load_shouts_by(_, info, options):
|
|||||||
q = (
|
q = (
|
||||||
select(Shout, Author)
|
select(Shout, Author)
|
||||||
.options(
|
.options(
|
||||||
joinedload(Shout.authors, Shout.authors.contains(Author.id)),
|
joinedload(Shout.authors).joinedload(Author.id),
|
||||||
joinedload(Shout.topics),
|
joinedload(Shout.topics),
|
||||||
)
|
)
|
||||||
.where(Shout.deleted_at.is_(None))
|
.where(Shout.deleted_at.is_(None))
|
||||||
|
Reference in New Issue
Block a user