Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有 db 结构,值是对象数组,如
{ key : [ { retrive : false }, { retrive : true } ] }
而且我只想查询对象被“检索”键设置为真。
db.collection.find({'key.$.retrive':true},function(err,res){ });