$nor
{ $nor: [ { <expression1> }, { <expression2> }, ... { <expressionN> } ] }例子
$nor查询有两种表述
$nor查询有两种表述db.inventory.find( { $nor: [ { price: 1.99 }, { sale: true } ] } )$nor和另外的比较
$nor和另外的比较$nor和$exists
$nor和$exists最后更新于
db.inventory.find( { $nor: [ { price: 1.99 }, { qty: { $lt: 20 } }, { sale: true } ] } )db.inventory.find( { $nor: [ { price: 1.99 }, { price: { $exists: false } },
{ sale: true }, { sale: { $exists: false } } ] } )