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
Method Parameters
propertyNamestring

valueany
Returns
JavaScript
Errors

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

Did this help?

limit( )


Limits the number of items the query returns.

The limit() function defines the number of results a query returns in each page. Only one page of results is retrieved at a time. You can use the next() and prev() functions to navigate the pages of a query result.

Method Declaration
Copy
function limit(limit: number): ActivityCountersQueryBuilder;
Method Parameters
limitnumber

Number of items to return, which is also the pageSize of the results object.

Returns
JavaScript
const query = activityCounters.queryActivityCounters().limit(10);
Errors

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

Did this help?