Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support "contains" and "overlap" filtering (v3) #1101

Conversation

lucas-bremond
Copy link
Contributor

@lucas-bremond lucas-bremond commented Jan 18, 2021

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
      }
    }
  }
}

Copy link
Collaborator

@zbyte64 zbyte64 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@zbyte64 zbyte64 merged commit 5dea6ff into graphql-python:main Jan 19, 2021
@lucas-bremond lucas-bremond deleted the users/lucas/contains-overlap-filtering-v3 branch January 19, 2021 06:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants