mongodb 子集合嵌套查询

mongodb中有没有类似 select * from (select … where ) where 的操作 或者 说 db.getCollection().find({version:4,version:6}) 允许 find 中 同一个key 同时生效(查询不出数据,默认是第二个覆盖第一个)

db.getCollection(“xxxx”).aggregate()
.match({version:2}).match…

1 个赞