graphql-middleware
graphql-middleware copied to clipboard
Split up your GraphQL resolvers in middleware functions
Would it be possible to add to the FAQ how this middleware differs from Apollo Server new plugin system? There seems to be much overlap, hence it would be helpful...
I am not sure if my question is correct or if it is even possible. I am new to GraphQL and similar tools, so I am sorry for my silly...
Is there any way that I can extract the __typename of a resolver response in my middleware?
I've been able to successfully apply middleware for fields, but when I try to apply one to a type resolver, it only applies the middleware to that type's field resolvers,...
Rather than fragment replacements...
Hey guys, I just discovered this repository 😀 My idea is to extend a Dgraph API with additional directives and logic (like input validation), that I won't implement directly into...
I'm calling `setMessage` trying to return `id` from the created message. But if there's an error I get the following message: > Cannot return null for non-nullable field Message.id. The...
Hey, thanks for a great library! I was wondering if it's possible to blacklist instead of whitelisting queries/mutations? I.e. this is how we do it today: ```typescript export const authMiddleware...
# Problem defn When using GraphQL shield to apply rules across the schema, subscription rules are not executed for subscription subscribe operations. ## Issue The `applyMiddlewareToField` function does not take...
Hi! 👋 Firstly, thanks for your work on this project! 🙂 Today I used [patch-package](https://github.com/ds300/patch-package) to patch `[email protected]` for the project I'm working on. Here is the diff that solved...