mirror of
https://github.com/graphql-python/graphene.git
synced 2024-11-11 12:16:58 +03:00
Adding links to the cookbook example app (links should work upon merge)
This commit is contained in:
parent
a881aa94e4
commit
716aa8ff66
|
@ -10,16 +10,19 @@ to provide filtering of results. See the
|
|||
[usage documentation](https://django-filter.readthedocs.org/en/latest/usage.html#the-filter)
|
||||
for details on the format for `filter_fields`.
|
||||
|
||||
**Note 1:** This filtering is only available when using the Django integrations
|
||||
(i.e. nodes which extend `DjangoNode`)
|
||||
|
||||
**Note 2:** `django-filter` is an optional dependency of Graphene. You will need to
|
||||
This filtering is only available when using the Django integrations
|
||||
(i.e. nodes which extend `DjangoNode`). Additionally `django-filter`
|
||||
is an optional dependency of Graphene. You will need to
|
||||
install it manually, which can be done as follows:
|
||||
|
||||
```bash
|
||||
# You'll need to django-filter
|
||||
pip install django-filter
|
||||
```
|
||||
|
||||
**Note: The techniques below are demoed in the
|
||||
[cookbook example app](https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook).**
|
||||
|
||||
## Filterable fields
|
||||
|
||||
The `filter_fields` parameter is used to specify the fields which can be filtered upon.
|
||||
|
|
|
@ -13,6 +13,9 @@ Django's getting started page.
|
|||
|
||||
First let's create a few simple models...
|
||||
|
||||
**Note: The code in this quickstart is pulled from the
|
||||
[cookbook example app](https://github.com/graphql-python/graphene/tree/feature/django/examples/cookbook)**.
|
||||
|
||||
## Defining our models
|
||||
|
||||
Before continuing, create the following:
|
||||
|
|
Loading…
Reference in New Issue
Block a user