Skip to content

Commit ee3e8aa

Browse files
committed
Fix loader handling.
1 parent bd364c3 commit ee3e8aa

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tests/benchmarks/test_relationship_loading.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,12 @@ async def execute():
102102
}
103103
}
104104
""",
105-
context_value={"session": session},
105+
context_value={
106+
"session": session,
107+
"sqlalchemy_loader": strawberry_sqlalchemy_mapper.StrawberrySQLAlchemyLoader(
108+
bind=session
109+
),
110+
},
106111
)
107112

108113
benchmark(async_to_sync(execute))

0 commit comments

Comments
 (0)