find a key in mongodb code example Example: mongo find documents that have a certain key db.coll.find({"mykey":{'$exists': 1}})