Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
andrew-oreshko committed Aug 28, 2023
1 parent d0668cc commit 9a0ff54
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions graphene_sqlalchemy/batching.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,9 +137,7 @@ def _get_loader(relationship_prop):
RELATIONSHIP_LOADERS_CACHE[relationship_prop] = loader
return loader

loader = _get_loader(relationship_prop)

async def resolve(root, info, **args):
return await loader.load(root)
return await _get_loader(relationship_prop).load(root)

return resolve

0 comments on commit 9a0ff54

Please sign in to comment.