distinct() public method
Returns a list of distinct values for the given column across a collection.
public array|boolean distinct ( $column, $condition = [], $options = [] )$column string
Column to use. $condition array
Query parameters. $options array
List of options in format: optionName => optionValue. return
array|boolean
Array of distinct values, or "false" on failure. throws yii\mongodb\Exception
on failure.