We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b6cf024 commit 265c870Copy full SHA for 265c870
src/strawberry_sqlalchemy_mapper/mapper.py
@@ -404,7 +404,11 @@ async def resolve(self, info: Info):
404
else:
405
relationship_key = tuple(
406
[
407
- getattr(self, local.key)
+ [
408
+ x.value
409
+ for x in instance_state.attrs.values()
410
+ if x.key == local.key
411
+ ][0]
412
for local, _ in relationship.local_remote_pairs
413
]
414
)
0 commit comments