From 7b6c672ca7abaf893674fe61b89dc94f4a014f02 Mon Sep 17 00:00:00 2001 From: Bradford Wells Date: Fri, 18 Aug 2017 22:38:17 -0600 Subject: [PATCH] Add documenation that flask-graphql supports middleware --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c226899..8c918ae 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ This will add `/graphql` and `/graphiql` endpoints to your app. * `graphiql`: If `True`, may present [GraphiQL](https://github.com/graphql/graphiql) when loaded directly from a browser (a useful tool for debugging and exploration). * `graphiql_template`: Inject a Jinja template string to customize GraphiQL. * `batch`: Set the GraphQL view as batch (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer)) + * `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/). You can also subclass `GraphQLView` and overwrite `get_root_value(self, request)` to have a dynamic root value per request.