mingo
    Preparing search index...

    Function aggregate

    • Performs an aggregation operation on the provided collection using the specified pipeline.

      Parameters

      • collection: Source

        The input data source to aggregate.

      • pipeline: AnyObject[]

        An array of aggregation stages to process the collection.

      • Optionaloptions: Partial<Options>

        Optional settings to customize the aggregation behavior.

      Returns AnyObject[]

      The result of the aggregation as an array of objects.