NamesArrayLength
db.accommodations.find({"NamesArrayLength": {$gt: 1} });
It will be better solution, and will work much faster (you can create index on it).
上一篇:mongodb的通配符查询的一次失败经验
下一篇:MonGo---安装及其基本操作