Skip to content
This repository has been archived by the owner on Oct 11, 2023. It is now read-only.

Support complex AND and OR filters #23

Closed
brettwillis opened this issue Jul 24, 2020 · 1 comment · Fixed by #49
Closed

Support complex AND and OR filters #23

brettwillis opened this issue Jul 24, 2020 · 1 comment · Fixed by #49
Assignees
Labels
bug Something isn't working
Milestone

Comments

@brettwillis
Copy link
Member

Newly added in Strapi 3.1.x
See https://strapi.io/documentation/v3.x/content-api/parameters.html#complexe-queries

@brettwillis brettwillis added the bug Something isn't working label Jul 24, 2020
@brettwillis brettwillis added this to the 3.0.0 milestone Jul 24, 2020
@brettwillis brettwillis self-assigned this Jul 24, 2020
@brettwillis
Copy link
Member Author

An or filter, once parsed, comes in the shape:

{
  "where": [
    {
      "field": null,
      "operator": "or",
      "value": [
        [
          {
            "field": "rank",
            "operator": "eq",
            "value": "42"
          }
        ],
        [
          {
            "field": "rank",
            "operator": "eq",
            "value": "82"
          }
        ]
      ]
    }
  ]
}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant