Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can subscriptions have middleware? #188

Closed
nrbnlulu opened this issue Jan 4, 2023 · 2 comments · Fixed by #221
Closed

Can subscriptions have middleware? #188

nrbnlulu opened this issue Jan 4, 2023 · 2 comments · Fixed by #221
Assignees
Labels
feature Feature request
Milestone

Comments

@nrbnlulu
Copy link
Contributor

nrbnlulu commented Jan 4, 2023

In execute you can pass a MiddlewareManager is there an alternative for subscribe?
I want to run code before a resolver is called.

@Cito
Copy link
Member

Cito commented 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.

@Cito Cito self-assigned this Jan 4, 2023
@Cito Cito added the feature Feature request label Jan 4, 2023
@Cito Cito added this to the v3.3 milestone Jan 4, 2023
@nrbnlulu
Copy link
Contributor Author

nrbnlulu commented Jan 6, 2023

@nrbnlulu nrbnlulu changed the title Can subscriptions have middleware Can subscriptions have middleware? Jul 2, 2024
@Cito Cito closed this as completed in #221 Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Feature request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants