find( )


Returns the query results.

The find() function returns a Promise that resolves to the query results and metadata. The Promise is rejected if find() is called with insufficient permissions or if any of the previous functions used to refine the query are invalid.

Method Declaration
Copy
Request
This method does not take any parameters
Returns
Return Type:Promise<ActivityCountersQueryResult>
JavaScript
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?

in( )


Refines a query to only match items where the specified property contains any of the values in the provided array of values.

The in() function refines a ActivityCountersQueryBuilder to match only items where the specified propertyName is equal to any of the values in the provided array. Matching strings with in() is case-sensitive, so 'text' isn't equal to 'Text'.

Method Declaration
Copy
function in(propertyName: string, value: any): ActivityCountersQueryBuilder
Method Parameters
propertyNamestring

valueany
Returns
JavaScript
const query = activityCounters .queryActivityCounters() .in(["labelIds", "colors"], ["red", "blue", "purple"]);
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?