SyntaxFix
Write A Post
Hire A Developer
Questions
Use $ne (for "not equal")
$ne
db.collection.find({ "fieldToCheck": { $exists: true, $ne: null } })