查询数组大小大于1的文档
{ "_id" : ObjectId("4e8ae86d08101908e1000001"), "name" : ["Name"], "zipcode" : ["2223"]}{ "_id" : ObjectId("4e8ae86d08101908e1000002"), "name" : ["Another ", "Name"], "zipcode" : ["2224"]}
db.accommodations.find({ name : { $size : 2 }})
name
$gt
name
db.accommodations.find({ name : { $size: { $gt : 1 } }})
name
郎朗坤
慕田峪7331174
相关分类