Manual mounting of Graphql endpoints #132
Replies: 2 comments
-
|
I'm afraid that's not possible, or at least not this simple. This way of binding middleware only works for HTTP routes. If you want a more granular way, you'd have to create a custom middleware or interceptor or something that wraps the request, and based on some condition, wrap the rest of the execution flow with I would suggest that you look at the code of the But I'm afraid that this level of granularity of initializing the CLS context would only lead to confusion in the future, because you can't be sure when it's actually initialized. |
Beta Was this translation helpful? Give feedback.
-
|
Yes, you are right, this isn't so trivial, especially in the case of middleware, since Nest only provides needed |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, @Papooch.
I have a question about setting up
CLSin the middleware section. Specifically, I'm interested in setting upCLSfor certainGraphQLoperations (as an alternative to simpleHTTProutes). Is there a way to do this?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions