mirror of
https://github.com/graphql-python/graphene-django.git
synced 2025-12-08 10:44:28 +03:00
refine_queryset lets DjangoObjectType define exactly how the queryset should be refined before being returned to the user. For instance, some objects could be filtered out according to a predicate, or some fields could be prefetched depending on what the initial query requested. get_connection_parameters lets DjangoObjectType define the name and value of parameters that can be passed to any DjangoConnectionField that uses them. Both these additions come as building blocks to allow custom refinements and filters without having to go through django-filter. Moreover, such filters can also be further optimized than previously allowed, as the GraphQL info object is available in refine_queryset. |
||
|---|---|---|
| .. | ||
| debug | ||
| filter | ||
| forms | ||
| management | ||
| rest_framework | ||
| templates/graphene | ||
| tests | ||
| __init__.py | ||
| compat.py | ||
| converter.py | ||
| fields.py | ||
| registry.py | ||
| settings.py | ||
| types.py | ||
| utils.py | ||
| views.py | ||