Django Settings
Certain features of this library are configured using custom
Django settings .
STRAWBERRY_DJANGO
A dictionary with the following optional keys:
-
FIELD_DESCRIPTION_FROM_HELP_TEXT
(default: False
)
-
TYPE_DESCRIPTION_FROM_MODEL_DOCSTRING
(default: False
)
-
MUTATIONS_DEFAULT_ARGUMENT_NAME
(default: "data"
)
-
MUTATIONS_DEFAULT_HANDLE_ERRORS
(default: False
)
-
GENERATE_ENUMS_FROM_CHOICES
(default: False
)
-
MAP_AUTO_ID_AS_GLOBAL_ID
(default: False
)
-
DEFAULT_PK_FIELD_NAME
(default: "pk"
)
-
USE_DEPRECATED_FILTERS
(default: False
)
-
PAGINATION_DEFAULT_LIMIT
(default: 100
)
These features can be enabled by adding this code to your settings.py
file, like: