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 "or" operator to CrudFilter #1598

Merged
merged 29 commits into from Mar 8, 2022
Merged

Add "or" operator to CrudFilter #1598

merged 29 commits into from Mar 8, 2022

Conversation

salihozdemir
Copy link
Contributor

@salihozdemir salihozdemir commented Feb 28, 2022

Hey, I'm client! Test me! 'MASTER'
Link to OR-CONDITION-FOR-FILTER

Test me! 'MASTER'
Link to OR-CONDITION-FOR-FILTER

Hey, I'm client! Test me! 'MASTER'
Link to OR-CONDITION-FOR-FILTER

Test me! 'MASTER'
Link to OR-CONDITION-FOR-FILTER

Usage

filter = [
    {
      operator: "eq",
      field: "age",
      value: 20
    },
    {
      operator: "or",
      value: [
        {
          field: "title",
          operator: "eq",
          value: "Test",
        },
        {
          field: "description",
          operator: "eq",
          value: "Test"
        }
      ]
   }
]

Supported Data Providers

  • Strapi-v4
  • Strapi
  • Strapi Graphql
  • Supabase
  • Hasura
  • Nhost
  • Nestjsx-Crud

fix #1417

Test documentation! 'MASTER'
Link to OR-CONDITION-FOR-FILTER

@refine-bot
Copy link
Contributor

Hello from PR Helper

Is your PR ready for review and processing? Mark the PR ready by including #pr-ready in a comment.

If you still have work to do, even after marking this ready. Put the PR on hold by including #pr-onhold in a comment.

@salihozdemir salihozdemir marked this pull request as draft March 2, 2022 14:55
@salihozdemir salihozdemir marked this pull request as ready for review March 7, 2022 14:03
@refine-bot refine-bot requested a review from ozkalai March 7, 2022 14:04
@omeraplak omeraplak merged commit c9ce0cd into master Mar 8, 2022
@omeraplak omeraplak deleted the or-condition-for-filter branch March 8, 2022 14:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FEAT] Add ability to combine filters into OR arrangement
5 participants