我想在mongodb中拆分我的长查询,例如在下面的代码中使用db.users.find(q),我想使用像这样的连接版本db.users.find(q0 + q1)或任何其他方式,我可以将q分成两个查询在mongodb中连接两个查询
q= {},{name:1,"education.school.name":1,"education.type":1}
db.users.find(q)
q0={}
q1={name:1,"education.school.name":1,"education.type":1}
q=q0+","+q1
db.users.find(q)
我该怎么做?
我们在谈论什么编程语言? –
mongodb,不使用任何java代码 – user1848018