data method

JSObject data()

Returns the results of the aggregations performed over the underlying query.

The keys of the returned object will be the same as those of the AggregateSpec object specified to the aggregation method, and the values will be the corresponding aggregation result.

@returns The results of the aggregations performed over the underlying query.

Implementation

external JSObject data();