Skip to main content

Aggregates

Helper to build aggregation rules for use with resource().aggregate()

Constructors

new Aggregates()

new Aggregates(): Aggregates

Returns

Aggregates

Methods

avg()

static avg(field): IAggregationRule

Parameters

ParameterType
fieldstring

Returns

IAggregationRule


count()

static count(): IAggregationRule

Returns

IAggregationRule


max()

static max(field): IAggregationRule

Parameters

ParameterType
fieldstring

Returns

IAggregationRule


median()

static median(field): IAggregationRule

Parameters

ParameterType
fieldstring

Returns

IAggregationRule


min()

static min(field): IAggregationRule

Parameters

ParameterType
fieldstring

Returns

IAggregationRule


sum()

static sum(field): IAggregationRule

Parameters

ParameterType
fieldstring

Returns

IAggregationRule