Strapi filter "or" works as "and"

System Information
  • Strapi Version: 4.3.6
  • Operating System: Windows
  • Database: postgreSQL
  • Node Version: v16.15.1
  • NPM Version: 8.11.0
  • Yarn Version: 1.22.19

the strapi or filter is working as and
this is an issue, is there any solution?


I also opened an issue regarding this. you can read full report here

Hi,

If you want to use or, you need to pass all the targeted clauses inside its array, putting the or next to another clause will create an and clause between the or components and the other ones.

Basically, what should work would be smth like: or: [{ slug: { eq: $slug } }, { itSlug: { eq: $slug } }]