Skip to content

Commit

Permalink
Copy tests for query to test async execution
Browse files Browse the repository at this point in the history
  • Loading branch information
jaw9c committed Apr 2, 2023
1 parent c7105ec commit 99ae9aa
Show file tree
Hide file tree
Showing 3 changed files with 1,773 additions and 1 deletion.
1 change: 0 additions & 1 deletion graphene_django/converter.py
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,6 @@ async def custom_resolver(root, info, **args):
# the default Django resolver
# This happens, for example, when using custom awaitable resolvers.
return fk_obj
## This fucks shit up I do believe
return await sync_to_async(_type.get_node)(info, fk_obj.pk)

return custom_resolver
Expand Down
Loading

0 comments on commit 99ae9aa

Please sign in to comment.