Where's the documentMiddleware functionality?
See original GitHub issueAccording to graphql-middleware
’s README there should be a documentMiddleware
option in GraphQLServer
, but there isn’t, and the aforementioned functionality to add document-level middleware has been removed from the graphql-middleware
package, under the justification that it would be moved to graphql-yoga
What happened, @maticzav?
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Mongoose v6.8.1: Middleware
Document middleware is supported for the following document functions. In Mongoose, a document is an instance of a Model class. In document middleware...
Read more >Mongoose Middleware | The Javascript
There are 5 document functions you can use in middleware are: validate(); save(); remove(); updateOne(); deleteOne(). Below is ...
Read more >Using middleware - Express.js
METHOD() functions, where METHOD is the HTTP method of the request that the middleware function handles (such as GET, PUT, or POST) in...
Read more >Complete Guide to Express Middleware - Reflectoring
Middleware functions are attached to one or more route handlers in an Express application and execute in sequence from the time an HTTP...
Read more >Imperativeness of Mongoose Middleware aka Pre/Post-hooks ...
Document middleware is supported for the following document functions. · Query middleware is supported for the following Model and Query ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Hey @arianon,
documentMiddleware
is not yet available in Yoga. We’ve decided to removedocumentMiddleware
functionality fromgraphql-middleware
because it didn’t allow us to control query execution itself, but rather only as an insufficient workaround. We’ll be implementing it in Yoga in the following weeks, so stay put! 🙂@maticzav ping