MongoDB: Find a document by non-existence of a field?
Try the $exists
operator:
db.mycollection.find({ "price" : { "$exists" : false } })
and see its documentation.
Try the $exists
operator:
db.mycollection.find({ "price" : { "$exists" : false } })
and see its documentation.