Search...
pageSize
Returns the query page size.
Description
Type:
numberRead Only
Was this helpful?
Get the page size of a query result
Copy Code
1let resultPageSize = results.pageSize; // 50
Perform a query and get the page size of the result
Copy Code
1import { Permissions, webMethod } from 'wix-web-module';2import { contacts } from 'wix-crm-backend';34export const getPageSize = webMethod(Permissions.Anyone, async () => {5 try {6 const results = await contacts.queryLabels().find();7 return results.pageSize; // 508 } catch (error) {9 console.error(error);10 }11});