mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-16 11:12:20 +03:00
Enable syntax highlight for graphql queries
This commit is contained in:
parent
1c88ead9e5
commit
e30864d865
|
@ -151,7 +151,7 @@ For example the following ``Model`` and ``DjangoObjectType``:
|
||||||
|
|
||||||
Results in the following GraphQL schema definition:
|
Results in the following GraphQL schema definition:
|
||||||
|
|
||||||
.. code::
|
.. code:: graphql
|
||||||
|
|
||||||
type Pet {
|
type Pet {
|
||||||
id: ID!
|
id: ID!
|
||||||
|
@ -178,7 +178,7 @@ You can disable this automatic conversion by setting
|
||||||
fields = ("id", "kind",)
|
fields = ("id", "kind",)
|
||||||
convert_choices_to_enum = False
|
convert_choices_to_enum = False
|
||||||
|
|
||||||
.. code::
|
.. code:: graphql
|
||||||
|
|
||||||
type Pet {
|
type Pet {
|
||||||
id: ID!
|
id: ID!
|
||||||
|
|
Loading…
Reference in New Issue
Block a user