mongodb\QueryBuilder distinct()

distinct() public method

Generates 'distinct' command.

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

Collection name.

$fieldName string

Target field name.

$condition array

Filter condition

$options array

List of options in format: optionName => optionValue.

return array

Command document.

doc_Yii
2016-10-30 17:09:06
Comments
Leave a Comment

Please login to continue.