fix: no need for a run call in the async version

This commit is contained in:
Cameron Hurst 2021-01-05 06:28:16 -05:00
parent 8e5354157c
commit 34b07e6209

View File

@ -40,6 +40,6 @@ class Client:
async def execute_async(self, *args, **kwargs):
executed = self.schema.execute(*args, **dict(self.execute_options, **kwargs))
if is_awaitable(executed):
executed = await asyncio.run(executed)
executed = await executed
return self.format_result(executed)