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?
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! 馃檪
Due to inactivity of this issue we have marked it stale. It will be closed if no further activity occurs.
Hey :wave:, It seems like this issue has been inactive for some time. In need for maintaining clear overview of the issues concerning the latest version of graphql-yoga we'll close it.
Feel free to reopen it at any time if you believe we should futher discuss its content. :slightly_smiling_face:
Hey @maticzav, any progress on implementing the documentMiddleware? 馃檪
@maticzav ping
Most helpful comment
Hey @arianon,
documentMiddlewareis not yet available in Yoga. We've decided to removedocumentMiddlewarefunctionality fromgraphql-middlewarebecause 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! 馃檪