mongodb $match document not in array code example
Example: find string element in an array mongodb
db.articles.find({
"stock.country" : "01",
"stock.warehouse.code" : "02"
}).pretty();
db.articles.find({
"stock.country" : "01",
"stock.warehouse.code" : "02"
}).pretty();