Say I have a collection book, like this:
{
name:"xxxx",
tags:["thriller", "novel", "modern"]
}
How can I query all the books that have at least one of the tags: "novel","music" ? Is there a way like :
db.inventory.find( { tags: { $containsAny: ["novel","music"] } } )
Thanks in advance.