mongodb how to where exist column or not code example Example: mongodb exists db.records.find( { a: { $exists: true } } )