Skip to content

3.6.0

Compare
Choose a tag to compare
@omeraplak omeraplak released this 08 Mar 14:30
· 4770 commits to master since this release

What's Changed

馃 With the new version, the filter type will change and you will be able to create two different filter objects as follows:

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

馃幆 Here the query would look like "age" == 20 AND ("title" == "Test" OR "description" == "Test")

With this usage, the field property can be undefined, so you'll need to handle this in your dataProvider that you create yourself. But great news for you, we added this feature to data providers that we support built-in. You can update and start using it immediately.

Supported Data Providers

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