mirror of
https://github.com/graphql-python/graphene.git
synced 2025-07-22 13:59:51 +03:00
fix: no need for a run call in the async version
This commit is contained in:
parent
8e5354157c
commit
34b07e6209
|
@ -40,6 +40,6 @@ class Client:
|
||||||
async def execute_async(self, *args, **kwargs):
|
async def execute_async(self, *args, **kwargs):
|
||||||
executed = self.schema.execute(*args, **dict(self.execute_options, **kwargs))
|
executed = self.schema.execute(*args, **dict(self.execute_options, **kwargs))
|
||||||
if is_awaitable(executed):
|
if is_awaitable(executed):
|
||||||
executed = await asyncio.run(executed)
|
executed = await executed
|
||||||
|
|
||||||
return self.format_result(executed)
|
return self.format_result(executed)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user