mongodb query to get all values in a column code example Example: list values of a column mongo db.collection.distinct('key_value')