Support "contains" and "overlap" filtering (v2) by lucas-bremond · Pull Request #1100 · graphql-python/graphene-django (original) (raw)
This PR adds support for the contains and overlap filters of Django.
This is basically extending #1070 (written by @tcleonard).
Contains:
query {
Returns Events that have music
AND sport
tags.
events(tags_Contains: ["music", "sport"]) { edges { node { name tags } } } }
Overlap:
query {
Returns Events that have music
OR sport
tags.
events(tags_Overlap: ["music", "sport"]) { edges { node { name tags } } } }
Note: this also applies the project setup fix from #1087 to the v2
branch.