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
The newest Strawberry version removes the execute and execute_sync functions that we were monkeypatching in favor of integrating the code directly in Schema.execute and Schema.execute_sync.
We were previously patching execute instead of Schema.execute because that way we had access to a populated execution_context which contains data that we wanted to put on the event via an event processor.
We also have access to the execution_context directly in the extension hooks Strawberry provides, so we can add the event processor there instead of monkeypatching anything.
The text was updated successfully, but these errors were encountered:
New Strawberry version removes the `execute` and `execute_sync`
functions that we were monkeypatching in favor of integrating the code
directly in `Schema.execute` and `Schema.execute_sync`.
We were previously patching `execute` instead of `Schema.execute` that's
calling it because that way we had access to a populated
`execution_context` which contains data that we wanted to put on the
event via an event processor.
We have access to the `execution_context` directly in the extension
hooks Strawberry provides, so we now add the event processor there
instead of monkeypatching anything.
This should also work for older Strawberry versions, so shouldn't be
necessary to keep the old implementation around for compat.
Closes#4037
Uh oh!
There was an error while loading. Please reload this page.
The newest Strawberry version removes the
execute
andexecute_sync
functions that we were monkeypatching in favor of integrating the code directly inSchema.execute
andSchema.execute_sync
.We were previously patching
execute
instead ofSchema.execute
because that way we had access to a populatedexecution_context
which contains data that we wanted to put on the event via an event processor.We also have access to the
execution_context
directly in the extension hooks Strawberry provides, so we can add the event processor there instead of monkeypatching anything.The text was updated successfully, but these errors were encountered: