You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Good point. I just spend some time looking at the code. In a nutshell: execution_context.result is not available during the execution of early extension hooks such the parsing hook.
Longer explanation:
During execution, the execution context is first created in the schema.execute and schema.execute_sync methods. At this point the execution_context.result is still None.
Next the operation, parsing and validation hooks of all extensions are called. If they catch any errors (for example while parsing the query) they add it to execution_context.errors because executon_context.result(.errors) is not available yet.
What is
self.execution_context.errors
on an extension, is it needed? (we have errors on the result)Related: StellateHQ/stellate-strawberry#6
Upvote & Fund
The text was updated successfully, but these errors were encountered: