How about putting null in a condition
schema.find({ col: null}, function (err, people) { β¦ });
or
schema.count({ col: null }, function (err, count) { console.log("We have %d Does in our db", count); });
The documentation also says that you can make Raw requests
db.driver.execQuery( "SELECT * FROM table WHERE col IS NOT NULL", function (err, data) { ... } )
Sebastian salamanca
source share