mongodb list all possible values for a field code example Example: list values of a column mongo db.collection.distinct('key_value')