finding elements that don't have a field in mongodb code example
Example: mongodb find all that dont have property
db.things.find( { a : { $exists : false } } ); // return if a is missing
db.things.find( { a : { $exists : false } } ); // return if a is missing