mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 17:52:19 +03:00
Add link to Django choices documentation
This commit is contained in:
parent
2d71a107d5
commit
380ad94b3b
|
@ -95,8 +95,10 @@ You can completely overwrite a field, or add new fields, to a ``DjangoObjectType
|
||||||
Choices to Enum conversion
|
Choices to Enum conversion
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
By default Graphene-Django will convert any Django fields that have ``choices``
|
By default Graphene-Django will convert any Django fields that have `choices`_
|
||||||
into a GraphQL enum type.
|
defined into a GraphQL enum type.
|
||||||
|
|
||||||
|
.. _choices: https://docs.djangoproject.com/en/2.2/ref/models/fields/#choices
|
||||||
|
|
||||||
For example the following ``Model`` and ``DjangoObjectType``:
|
For example the following ``Model`` and ``DjangoObjectType``:
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user