mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-07-13 09:42:32 +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
|
||||
~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||
|
||||
By default Graphene-Django will convert any Django fields that have ``choices``
|
||||
into a GraphQL enum type.
|
||||
By default Graphene-Django will convert any Django fields that have `choices`_
|
||||
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``:
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user