Skip to content

Commit c0f6768

Browse files
committed
Improved docs
1 parent af66474 commit c0f6768

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,9 @@ def graphql_view(request):
3434
* `schema`: The `GraphQLSchema` object that you want the view to execute when it gets a valid request.
3535
* `context`: A value to pass as the `context` to the `graphql()` function.
3636
* `root_value`: The `root_value` you want to provide to `executor.execute`.
37+
* `format_error`: If you want to use a custom error formatter.
3738
* `pretty`: Whether or not you want the response to be pretty printed JSON.
3839
* `executor`: The `Executor` that you want to use to execute queries.
3940
* `graphiql_enabled`: If `True` (default), may present [GraphiQL](https://github.com/graphql/graphiql) when loaded directly from a browser (a useful tool for debugging and exploration).
40-
* `graphiql_template`: Inject a Jinja template string to customize GraphiQL.
41+
* `render_graphiql`: A custom function for rendering GraphiQL (this function should have the arguments `result` and `params`).
4142
* `batch_enabled`: Enable batch support (for using in [Apollo-Client](http://dev.apollodata.com/core/network.html#query-batching) or [ReactRelayNetworkLayer](https://github.com/nodkz/react-relay-network-layer))

README.rst

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ Supported options
4141
function.
4242
- ``root_value``: The ``root_value`` you want to provide to
4343
``executor.execute``.
44+
- ``format_error``: If you want to use a custom error formatter.
4445
- ``pretty``: Whether or not you want the response to be pretty printed
4546
JSON.
4647
- ``executor``: The ``Executor`` that you want to use to execute
@@ -49,8 +50,8 @@ Supported options
4950
`GraphiQL <https://github.com/graphql/graphiql>`__ when loaded
5051
directly from a browser (a useful tool for debugging and
5152
exploration).
52-
- ``graphiql_template``: Inject a Jinja template string to customize
53-
GraphiQL.
53+
- ``render_graphiql``: A custom function for rendering GraphiQL (this
54+
function should have the arguments ``result`` and ``params``).
5455
- ``batch_enabled``: Enable batch support (for using in
5556
`Apollo-Client <http://dev.apollodata.com/core/network.html#query-batching>`__
5657
or

0 commit comments

Comments
 (0)