@@ -2,8 +2,8 @@ Filtering
2
2
=========
3
3
4
4
Graphene integrates with
5
- `django-filter <https://django-filter.readthedocs.io/en/master / >`__ to provide filtering of results.
6
- See the `usage documentation <https://django-filter.readthedocs.io/en/master /guide/usage.html#the-filter >`__
5
+ `django-filter <https://django-filter.readthedocs.io/en/main / >`__ to provide filtering of results.
6
+ See the `usage documentation <https://django-filter.readthedocs.io/en/main /guide/usage.html#the-filter >`__
7
7
for details on the format for ``filter_fields ``.
8
8
9
9
This filtering is automatically available when implementing a ``relay.Node ``.
@@ -34,7 +34,7 @@ Filterable fields
34
34
The ``filter_fields `` parameter is used to specify the fields which can
35
35
be filtered upon. The value specified here is passed directly to
36
36
``django-filter ``, so see the `filtering
37
- documentation <https://django-filter.readthedocs.io/en/master /guide/usage.html#the-filter> `__
37
+ documentation <https://django-filter.readthedocs.io/en/main /guide/usage.html#the-filter> `__
38
38
for full details on the range of options available.
39
39
40
40
For example:
@@ -192,7 +192,7 @@ in unison with the ``filter_fields`` parameter:
192
192
all_animals = DjangoFilterConnectionField(AnimalNode)
193
193
194
194
195
- The context argument is passed on as the `request argument <http://django-filter.readthedocs.io/en/master /guide/usage.html#request-based-filtering >`__
195
+ The context argument is passed on as the `request argument <http://django-filter.readthedocs.io/en/main /guide/usage.html#request-based-filtering >`__
196
196
in a ``django_filters.FilterSet `` instance. You can use this to customize your
197
197
filters to be context-dependent. We could modify the ``AnimalFilter `` above to
198
198
pre-filter animals owned by the authenticated user (set in ``context.user ``).
0 commit comments