Interface WeivDataAggregateResult<CItem>

interface WeivDataAggregateResult<CItem> {
    items: CItem[];
    length: number;
    pipeline: Document;
    hasNext(): boolean;
    next(): Promise<WeivDataAggregateResult<CItem>>;
}

Type Parameters

  • CItem

Properties

Methods

Properties

items: CItem[]

Gets the aggregated values.

length: number

Returns the number of values in the aggregate results.

pipeline: Document

Returns the pipeline created when performing the aggregation.

Methods

  • Returns boolean

    Indicates if the aggregation has more results.