Skip to content

Commit

Permalink
Merge pull request #31 from bwells/docs-middleware
Browse files Browse the repository at this point in the history
Add documenation that flask-graphql supports middleware
  • Loading branch information
syrusakbary authored Jun 5, 2018
2 parents 298d890 + 7b6c672 commit 23fb85c
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://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.
Expand Down

0 comments on commit 23fb85c

Please sign in to comment.