在双嵌套阵列MongoDB中查找
{"_id" : "777","someKey" : "someValue","someArray" : [ { "name" : "name1", "someNestedArray" : [ { "name" : "value" }, { "name" : "delete me" } ] } ]}
db.mycollection.find({"someArray.$.someNestedArray":{"$elemMatch":{"name":"1"}}})db.mycollection.find({"someArray.$.someNestedArray.$.name":"1"})
相关分类