How to use where in for multiple items?

Hello,

Let’s say I have the following document

{
  "tags": [
    "tag2",
    "tag3"
  ]
}

Is it possible to use where in query to select this document?

I’ve tried select * from bucket where ['tag2', 'tag3'] in tags , but it did not work.

Are there any ways to search a document with an array by multiple items?

select * from mybucket where ANY t in tags SATISFIES t IN [‘tag2’, ‘tag3’] END;

select * from mybucket where EVERY t in tags SATISFIES t IN [‘tag2’, ‘tag3’] END;

1 Like