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
This is currently not supported, but you can probably use a custom execution context as a workaround.
I will try to get this as a new feature into the next version. Maybe you can post a small example code how you expect it to work which I can then use as the basis for unit testing the feature.
Activity
Cito commentedon Jan 4, 2023
This is currently not supported, but you can probably use a custom execution context as a workaround.
I will try to get this as a new feature into the next version. Maybe you can post a small example code how you expect it to work which I can then use as the basis for unit testing the feature.
nrbnlulu commentedon Jan 6, 2023
Hi, strawberry has some good example https://strawberry.rocks/docs/guides/custom-extensions#resolve
we use this here:
https://github.com/strawberry-graphql/strawberry/blob/feacc0f186458d138ba0231a006317cadb0b7753/strawberry/schema/execute.py#L119
[-]Can subscriptions have middleware[/-][+]Can subscriptions have middleware?[/+]Cito commentedon Jan 26, 2025
Note: This is available in v3.3.0a6 and newer.