Cleanup RST warnings, minor rewordings

This commit is contained in:
Eric Abruzzese 2020-07-11 20:08:08 -04:00
parent a65b2a6df9
commit de1b7b8651
3 changed files with 9 additions and 7 deletions

View File

@ -28,6 +28,7 @@ For more advanced use, check out the Relay tutorial.
fields
extra-types
mutations
subscriptions
filtering
authorization
debug

View File

@ -104,7 +104,7 @@ Default: ``100``
``CAMELCASE_ERRORS``
------------------------------------
--------------------
When set to ``True`` field names in the ``errors`` object will be camel case.
By default they will be snake case.
@ -151,7 +151,7 @@ Default: ``False``
``DJANGO_CHOICE_FIELD_ENUM_CUSTOM_NAME``
--------------------------------------
----------------------------------------
Define the path of a function that takes the Django choice field and returns a string to completely customise the naming for the Enum type.
@ -173,7 +173,7 @@ Default: ``None``
``SUBSCRIPTION_PATH``
--------------------------------------
---------------------
Define an alternative URL path where subscription operations should be routed.
@ -182,6 +182,7 @@ The GraphiQL interface will use this setting to intelligently route subscription
Default: ``None``
.. code:: python
GRAPHENE = {
'SUBSCRIPTION_PATH': "/ws/graphql"
}

View File

@ -1,9 +1,9 @@
Subscription Support
====================
Subscriptions
=============
The ``graphene-django`` project does not currently support GraphQL subscriptions out of the box. However, there are
several community-driven modules for adding subscription support, and the GraphiQL interface provided by
``graphene-django`` supports subscriptions over websockets.
several community-driven modules for adding subscription support, and the provided GraphiQL interface supports
running subscription operations over a websocket.
To implement websocket-based support for GraphQL subscriptions, youll need to do the following: