mongo find also if no field exists code example Example: mongodb check if field exists db.records.find( { a: { $exists: true } } )