Skip to content

Strawberry integration doesn't work with newest strawberry-graphql release #4037

Closed
@sentrivana

Description

@sentrivana

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.

Metadata

Metadata

Assignees

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions