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