run( )


Runs the aggregation and returns the results.

The run() function returns a Promise that resolves to the results found by the aggregation and some information about the results.

Note: Aggregations can only be used on collections you have created. They cannot be used on Wix App Collections.

Method Declaration
Copy
Method Parameters
optionsRunOptions

Options to use when running an aggregation.

Returns
Return Type:Promise<WixDataAggregateResult>
Was this helpful?
Yes
No