Search...
length
Returns the number of items in the current results page.
Description
Type:
numberRead Only
Was this helpful?
Get the length of a query result
Copy Code
1const resultLength = results.length; // 20
Perform a query and get the length of the result
Copy Code
1import wixPricingPlansBackend from 'wix-pricing-plans-backend';23// ...45wixPricingPlansBackend.queryPublicPlans()6 .find()7 .then((results) => {8 const resultLength = results.length; // 209 })10 .catch((error) => {11 const queryError = error;12 });