Search...
totalCount
Returns the total number of items that match the query.
Description
The totalCount
returns the total number of items that match the query,
not just the number of items in the current page.
Type:
numberRead Only
Was this helpful?
Get the number of items in a query result
Copy Code
1const resultCount = results.totalCount; // 150
Perform a query and get the number of items in the result
Copy Code
1import wixPricingPlansBackend from 'wix-pricing-plans-backend';23// ...45wixPricingPlansBackend.queryPublicPlans()6 .find()7 .then((results) => {8 const resultCount = results.totalCount; // 1509 })10 .catch((error) => {11 const queryError = error;12 });