2017-07-27 58 views

回答

0

我认为你在寻找这样的事情

db.col.find({$or: [ 
    {$and: [ {"b.123": null}, {"b.123":{$exists : true}} ]}, 
    {$and: [ {"b.345": null}, {"b.345":{$exists : true}} ]}, 
    {$and: [ {"b.567": null}, {"b.567":{$exists : true}} ]} 
]})