aggregate() public method
Performs aggregation using MongoDB Aggregation Framework.
public array aggregate ( $collectionName, $pipelines, $options = [] ) | ||
---|---|---|
$collectionName | string |
Collection name |
$pipelines | array |
List of pipeline operators. |
$options | array |
Optional parameters. |
return | array |
Aggregation result. |
Please login to continue.