From 849a6ca5fc69bd4b414785ae8d5b52b6e841ccef Mon Sep 17 00:00:00 2001 From: Aaron Murdoch Date: Thu, 8 Apr 2021 21:39:12 -0600 Subject: [PATCH] Made same ariadne fix to new version --- src/graphql/execution/execute.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/graphql/execution/execute.py b/src/graphql/execution/execute.py index 1f076149..a4716fcf 100644 --- a/src/graphql/execution/execute.py +++ b/src/graphql/execution/execute.py @@ -639,7 +639,10 @@ def resolve_field_value_or_error( # noinspection PyShadowingNames async def await_result() -> Any: try: - return await result + intermediate_result = await result + if isawaitable(intermediate_result): + return await intermediate_result + return intermediate_result except Exception as error: return error