@dxos/echo
    Preparing search index...

    Interface Aggregate<T, V>

    A per-group aggregate declaration, materialised as a top-level field on the flat result record Query.aggregate produces and orderable via a following orderBy(Order.property(name)). Name it via the record passed to Query.aggregate({ name: Aggregate.max('created') }).

    T is the query's element type (so a reduced/grouped property is checked against it); V is the value the aggregate produces. group entries define the grouping keys; a record with no group entries aggregates the entire input into a single row.

    interface Aggregate<T, V> {
        "~@dxos/echo/Aggregate": { element: T; value: V };
        spec: Spec;
    }

    Type Parameters

    • T
    • V
    Index

    Properties

    "~@dxos/echo/Aggregate": { element: T; value: V }
    spec: Spec