While using graphene with Relay in django, there is an option to use filtering while querying the data.
class AnimalNode(DjangoObjectType):
class Meta:
model = Animal
filter_fields = ['name', 'genus', 'is_domesticated']
OR
filter_fields = {
'name': ['exact', 'icontains', 'istartswith'],
'genus': ['exact'],
'is_domesticated': ['exact'],
}
interfaces = (relay.Node, )
Is it possible to use filtering in this fashion while I'm not using relay or is it a relay-only feature? I don't see any filtering for non-relay in the graphene docs so can't really be sure how to proceed with this.