[Fixed]-Using django_filters on graphene queries while not using Relay


Absolutely, you can totally apply filtering to your data in Graphene-Django even if you’re not using Relay. The fancy term here is filter_fields, which is a handy tool that lets you decide how you want to filter stuff when you’re asking for data.

In your case, you’ve got this AnimalNode thing, right? Cool.

You can sort of tell it what fields you want to use for filtering, like ‘name’, ‘genus’, and ‘is_domesticated’. You can even get a bit fancy and specify how you want to filter, like "exact", "icontains", or "istartswith".

Leave a comment