arr in mongodb code example
Example 1: find string element in an array mongodb
db.articles.find({
"stock.country" : "01",
"stock.warehouse.code" : "02"
}).pretty();
Example 2: mongo array
db.inventory.find( { tags: ["red", "blank"] } )
db.articles.find({
"stock.country" : "01",
"stock.warehouse.code" : "02"
}).pretty();
db.inventory.find( { tags: ["red", "blank"] } )