Mongodb Mongoose : Find all docs where field doesn't exists, plus if field exists apply condition code example
Example: Mongodb Mongoose : Find all docs where field doesn't exists, plus if field exists apply condition
db.stackoverflow.find({
$or: [
{ howmuch: { $exists:false } },
{ howmuch:5 }
]})