question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Where's the documentMiddleware functionality?

See original GitHub issue

According 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:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
maticzavcommented, May 12, 2018

Hey @arianon, documentMiddleware is not yet available in Yoga. We’ve decided to remove documentMiddleware functionality from graphql-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! 🙂

0reactions
ghostcommented, May 6, 2019

@maticzav ping

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found