Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"PRODUCT_NAME":"Truffle Cake","TAGS":[["Cakes",100],["Flowers",100],]}]
Query
db.collection.aggregate([{$match:{"TAGS":{"$elemMatch":{"$elemMatch":{"$in":["Cakes"]}}}}}])
Result