how to check the unique values in the array of json in mongodb code example Example: mongodb distinct Db.collection.distinct('searchField')