Search.../

pageSize

Returns the requested page size.

Description

pageSize returns the page size set in limit() in PlansQueryBuilder.

Type:

number

Was this helpful?

Get the query's page size

Copy Code
1const requestedPageSize = results.pageSize;
2
Perform a query and get pageSize from the result

Copy Code
1import { plans } from 'wix-pricing-plans.v2';
2
3export async function myQueryFunction() {
4 const results = await plans.queryPublicPlans().find();
5
6 return results.pageSize;
7}
8