Middleware for GraphQL Mesh #4189
-
Hi @ardatan I had a small query about GraphQL Mesh middleware. If there are any possibilities, I can create a middleware in Mesh. If so, are there any examples available on our Github? Because we need to implement some Auth level logic on that middleware. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
If you give more details about what you are trying to achieve, we can help you better |
Beta Was this translation helpful? Give feedback.
-
@ardatan Sure. As of now, I do not have any code snippets. I have an idea only As per our requirement, I need to use 2 external micro service APIs. I need to include a user validation token in this API. In this case, I need to implement, you know, normal "Node JS Express Middleware" (or) any resolver, intercept and how it works. That's the same kind of validation I need to use in our GraphQL Mesh. If there are any examples available for similar situations, |
Beta Was this translation helpful? Give feedback.
-
This might help you |
Beta Was this translation helpful? Give feedback.
-
@ardatan Sure. I will do it. Thanks |
Beta Was this translation helpful? Give feedback.
This might help you
https://www.graphql-mesh.com/docs/transforms/resolvers-composition