mongodb\Command distinct()

distinct() public method

Returns a list of distinct values for the given column across a collection.

public array distinct ( $collectionName, $fieldName, $condition = [], $options = [] )
$collectionName string

Collection name.

$fieldName string

Field name to use.

$condition array

Query parameters.

$options array

List of options in format: optionName => optionValue.

return array

Array of distinct values, or "false" on failure.

doc_Yii
2016-10-30 17:07:46
Comments
Leave a Comment

Please login to continue.