标签: mongodb
我想知道在执行mongodb查询时是否可以检查哪个条件不符合。
User: { name : 'John', age : 18 } User.findOne({ 'name' : 'John', 'age' : { $gte : 20} }, function(err,result){ // here get some kind of error that a 'John' was found but not with that age })