When running a query with an $exists, a value of false causes the query to return 0 results.
db.foo.find({value:{$exists:false}});
The only fix I found was using $not with an $exists:true
db.foo.find({$not:{value:{$exists:true}}})
- is depended on by
-
SERVER-1735 Inconsistent behaviour for $exists: false and $type: 10 in query
- Closed