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 3cdde12 commit ecbde0fCopy full SHA for ecbde0f
src/strawberry_sqlalchemy_mapper/loader.py
@@ -39,7 +39,11 @@ async def load_fn(keys: List[Tuple]) -> List[Any]:
39
def group_by_remote_key(row: Any) -> Tuple:
40
return tuple(
41
[
42
- getattr(row, remote.key)
+ [
43
+ getattr(row, k)
44
+ for k, column in row.__mapper__.c.items()
45
+ if remote.key == column.key
46
+ ][0]
47
for _, remote in relationship.local_remote_pairs
48
]
49
)
0 commit comments