Skip to content

Commit f4719fa

Browse files
committed
2.0 style query.
1 parent 57396e2 commit f4719fa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/benchmarks/test_relationship_loading.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ class Query:
5959
@strawberry.field
6060
@staticmethod
6161
async def parents(info: Info) -> List[StrawberryParent]:
62-
return info.context["session"].query(Parent).all()
62+
return info.context["session"].scalars(sa.select(Parent)).all()
6363

6464
mapper.finalize()
6565
base.metadata.create_all(engine)

0 commit comments

Comments
 (0)