Skip to main content

Aggregates

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

Constructors​

Constructor​

new Aggregates(): Aggregates

Returns​

Aggregates

Methods​

avg()​

static avg(field): IAggregationRule

Parameters​

ParameterType
fieldstring

Returns​

IAggregationRule


count()​

static count(): IAggregationRule

Returns​

IAggregationRule


countDistinct()​

static countDistinct(field): IAggregationRule

Parameters​

ParameterType
fieldstring

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