Briyah SDK - v2.0.6
    Preparing search index...

    Interface DataMetric

    One aggregate in a query.

    interface DataMetric {
        as?: string;
        field?: string;
        fn: DataAggregateFn;
    }
    Index
    as?: string

    The name this metric has in the result rows. Defaults to fn_field.

    field?: string

    Omitted only for count, which counts rows.