How can I search by something similar to array.includes? for one of the attributes?

Basically, I have a basic object with the following attributes interested

  "name": "First Last",
  "description": "Description",
  "is_published": true,
  "interested_in": [1,2,3,4,5]

And, I want to do the following query:

is_publshed is true
interested_in includes 3

Hi Mahmoud and welcome to the forum!

You can write your query like this:'query', {
  filters: 'name:First AND is_published:true AND interested_in:3'

The default behaviour of the engine will be to look for records where “interested_in” includes 3, not only for those who strictly match 3.

More about filters syntax here:

Happy coding!