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 265c870 commit 0ceaf48Copy full SHA for 0ceaf48
src/strawberry_sqlalchemy_mapper/mapper.py
@@ -405,9 +405,9 @@ async def resolve(self, info: Info):
405
relationship_key = tuple(
406
[
407
408
- x.value
409
- for x in instance_state.attrs.values()
410
- if x.key == local.key
+ v.value
+ for k, v in instance_state.attrs.items()
+ if instance_state.attrs[k].key == local.key
411
][0]
412
for local, _ in relationship.local_remote_pairs
413
]
0 commit comments