how to match the keys of mongodb code example Example: mongo find documents that have a certain key db.coll.find({"mykey":{'$exists': 1}})