mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-12 17:22:20 +03:00
Docs note on GraphiQL headers setting
This commit is contained in:
parent
29f28bc91b
commit
ca115f5381
|
@ -186,3 +186,24 @@ Default: ``None``
|
||||||
GRAPHENE = {
|
GRAPHENE = {
|
||||||
'SUBSCRIPTION_PATH': "/ws/graphql"
|
'SUBSCRIPTION_PATH': "/ws/graphql"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
``GRAPHIQL_HEADER_EDITOR_ENABLED``
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
GraphiQL starting from version 1.0.0 allows setting custom headers in similar fashion to query variables.
|
||||||
|
|
||||||
|
Set to ``True`` to enable GraphiQL headers editor tab.
|
||||||
|
|
||||||
|
This setting is passed to ``headerEditorEnabled`` GraphiQL options, for details refer to GraphiQLDocs_.
|
||||||
|
|
||||||
|
.. _GraphiQLDocs: https://github.com/graphql/graphiql/tree/main/packages/graphiql#options
|
||||||
|
|
||||||
|
|
||||||
|
Default: ``False``
|
||||||
|
|
||||||
|
.. code:: python
|
||||||
|
|
||||||
|
GRAPHENE = {
|
||||||
|
'GRAPHIQL_HEADER_EDITOR_ENABLED': True,
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user