Graphene Django is incompatible with django-filters 2.0.0
See original GitHub issueWhen using graphene-django along with django-filter
2.0.0 I get an error trying to use the graphql endpoint.
A brief example:
class Query(object):
projects = DjangoFilterConnectionField(
MyProjectNode, filterset_class=MyProjectFilterSet)
This is the error:
`GrapheneMyProjectFilterSet.filter_for_reverse_field` has been removed. `GrapheneMyProjectFilterSet.filter_for_field` now generates filters for reverse fields. See: https://django-filter.readthedocs.io/en/master/guide/migration.html
Issue Analytics
- State:
- Created 5 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Graphene Django is incompatible with django-filters 2.0.0
When using graphene-django along with django-filter 2.0.0 I get an error trying to use the graphql endpoint. A brief example:
Read more >Django graphene, filtering by object - python - Stack Overflow
Try graphene.types.generic.GenericScalar() from graphene.types.generic import GenericScalar class Document(graphene.
Read more >graphene-django-extras - PyPI
This package adds some extra functionalities to graphene-django to facilitate the graphql use without Relay: Allow pagination and filtering on Queries. Allow ...
Read more >Simple index - piwheels
... sillysort random-proxy graphene-django-plus linkedin-search-groups-scraper orderedpy darcyai lxg numutils-lg plotting-tools fio-product-attribute-strict ...
Read more >graphene Changelog - pyup.io
hashable Enum by bkad in https://github.com/graphql-python/graphene/pull/1461 ... Added automatic `django-filters` support via `DjangoFilterConnectionField` ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This actually prevents a django 2.1 upgrade, as Django 2.1 requires
django-filters
to be bumped to 2.0:This is with the following requirements:
I’ve run into the same issue: I want to use
graphene-django
with filtering capabilities indjango==2.1.1
(the latest as of today).Could someone please let me know if this is an immediate concern in the pipeline? If not, I would be happy to take this up and pitch in!