Return the result collection after running the aggregation pipeline for the given collection. Shorthand for (new Aggregator(pipeline, options)).run(collection)
(new Aggregator(pipeline, options)).run(collection)
array or stream of objects
The pipeline operators to use
Optional
New array of results
Return the result collection after running the aggregation pipeline for the given collection. Shorthand for
(new Aggregator(pipeline, options)).run(collection)