When you execute an aggregation with the run()
function, it returns
a Promise that resolves to a WixDataAggregateResult
object, which contains
the aggregated values.
let items = results.items;
Returns the number of values in the aggregate results.
let length = results.length; // 4
Indicates if the aggregation has more results.
function hasNext(): boolean;
let hasNext = results.hasNext(); // true