Skip to content

Commit

Permalink
2.0 style query.
Browse files Browse the repository at this point in the history
  • Loading branch information
mattalbr committed Sep 21, 2023
1 parent 57396e2 commit f4719fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/benchmarks/test_relationship_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ class Query:
@strawberry.field
@staticmethod
async def parents(info: Info) -> List[StrawberryParent]:
return info.context["session"].query(Parent).all()
return info.context["session"].scalars(sa.select(Parent)).all()

mapper.finalize()
base.metadata.create_all(engine)
Expand Down

0 comments on commit f4719fa

Please sign in to comment.