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

Add support for the operator field in the Filters #19

Open
ciphrd opened this issue May 9, 2022 · 0 comments
Open

Add support for the operator field in the Filters #19

ciphrd opened this issue May 9, 2022 · 0 comments
Labels
enhancement New feature or request refacto

Comments

@ciphrd
Copy link
Contributor

ciphrd commented May 9, 2022

Any filter object in the variables supports the operator parameter.
It should change the behavior of the WHERE sql conditions and should either perform a OR or AND query based on the filter.

Currently, this filter is ignored and only AND operations are performed.

{
  "filters": {
    "type_in": [
      "MINTED",
      "MINTED_FROM"
    ],
    "operator": "OR"
  }
}

Filters are applied on a case-by-case basis and every endpoint should be examined to check it they implement filters.
This may require a general refacto to apply filters in a more generic fashion.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request refacto
Projects
None yet
Development

No branches or pull requests

1 participant