Skip to content

Commit 5e0f6e7

Browse files
committed
docs: add flask and webob doc on jinja_env
1 parent 181bc03 commit 5e0f6e7

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/flask.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,10 @@ This will add `/graphql` endpoint to your app and enable the GraphiQL IDE.
4646
* `root_value`: The `root_value` you want to provide to graphql `execute`.
4747
* `pretty`: Whether or not you want the response to be pretty printed JSON.
4848
* `graphiql`: If `True`, may present [GraphiQL](https://github.com/graphql/graphiql) when loaded directly from a browser (a useful tool for debugging and exploration).
49-
* `graphiql_version`: The graphiql version to load. Defaults to **"1.4.7"**.
49+
* `graphiql_version`: The graphiql version to load. Defaults to **"2.2.0"**.
5050
* `graphiql_template`: Inject a Jinja template string to customize GraphiQL.
5151
* `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**.
52+
* `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If environment is not set, fallbacks to simple regex-based renderer.
5253
* `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))
5354
* `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/).
5455
* `validation_rules`: A list of graphql validation rules.

docs/webob.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,10 @@ This will add `/graphql` endpoint to your app and enable the GraphiQL IDE.
4343
* `root_value`: The `root_value` you want to provide to graphql `execute`.
4444
* `pretty`: Whether or not you want the response to be pretty printed JSON.
4545
* `graphiql`: If `True`, may present [GraphiQL](https://github.com/graphql/graphiql) when loaded directly from a browser (a useful tool for debugging and exploration).
46-
* `graphiql_version`: The graphiql version to load. Defaults to **"1.4.7"**.
46+
* `graphiql_version`: The graphiql version to load. Defaults to **"2.2.0"**.
4747
* `graphiql_template`: Inject a Jinja template string to customize GraphiQL.
4848
* `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**.
49+
* `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If environment is not set, fallbacks to simple regex-based renderer.
4950
* `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))
5051
* `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/).
5152
* `validation_rules`: A list of graphql validation rules.

0 commit comments

Comments
 (0)