Provides functionality for the mongoDB aggregation pipeline
an Array of pipeline operators
An optional Options to pass the aggregator
Optional
Return the results of the aggregation as an array.
Returns an Iterator for lazy evaluation of the pipeline.
An array or iterator object
an iterator object
Provides functionality for the mongoDB aggregation pipeline
Param: pipeline
an Array of pipeline operators
Param: options
An optional Options to pass the aggregator