mongodb + find records where element exists code example Example: mongodb exists db.records.find( { a: { $exists: true } } )