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