Skip to content

Commit 3d4e11a

Browse files
committed
docs: add flask and webob doc on jinja_env
1 parent d99bb81 commit 3d4e11a

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

docs/flask.md

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,10 @@ More info at [Graphene v3 release notes](https://github.com/graphql-python/graph
5353
* `root_value`: The `root_value` you want to provide to graphql `execute`.
5454
* `pretty`: Whether or not you want the response to be pretty printed JSON.
5555
* `graphiql`: If `True`, may present [GraphiQL](https://github.com/graphql/graphiql) when loaded directly from a browser (a useful tool for debugging and exploration).
56-
* `graphiql_version`: The graphiql version to load. Defaults to **"1.4.7"**.
56+
* `graphiql_version`: The graphiql version to load. Defaults to **"2.2.0"**.
5757
* `graphiql_template`: Inject a Jinja template string to customize GraphiQL.
5858
* `graphiql_html_title`: The graphiql title to display. Defaults to **"GraphiQL"**.
59+
* `jinja_env`: Sets jinja environment to be used to process GraphiQL template. If environment is not set, fallbacks to simple regex-based renderer.
5960
* `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))
6061
* `middleware`: A list of graphql [middlewares](http://docs.graphene-python.org/en/latest/execution/middleware/).
6162
* `validation_rules`: A list of graphql validation rules.

docs/webob.md

+2-1
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)