Skip to content

Commit

Permalink
Add documenation that flask-graphql supports middleware
Browse files Browse the repository at this point in the history
  • Loading branch information
bwells committed Aug 19, 2017
1 parent 973d10f commit 7b6c672
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:https://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:https://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.
Expand Down

0 comments on commit 7b6c672

Please sign in to comment.