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.
-
Hello, @Papooch.
I have a question about setting up
CLS
in the middleware section. Specifically, I'm interested in setting upCLS
for certainGraphQL
operations (as an alternative to simpleHTTP
routes). Is there a way to do this?Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions