distinct() public method
Returns a list of distinct values for the given column across a collection.
public array distinct ( $q, $db = null ) | ||
---|---|---|
$q | string |
Column to use. |
$db | yii\mongodb\Connection |
The Mongo connection used to execute the query. If this parameter is not given, the |
return | array |
Array of distinct values |
Please login to continue.