run( )


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Runs the aggregation and returns the results.

The run() method 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
optionsWixDataReadOptions

Options to use when running an aggregation.

Returns
Return Type:Promise<WixDataResult>
Did this help?