Search.../

pageSize

Returns the query page size.

Description

The page size is defined by the limit() function, can be retrieved using the pageSize property, and navigating through pages is done with the prev() and next() functions.

Type:

numberRead Only

Was this helpful?

Get the page size of a query result

Code Example

Copy Code
1let resultPageSize = results.pageSize; // 50
Perform a query and get the page size of the query result

Code Example

Copy Code
1import wixData from 'wix-data';
2
3// ...
4
5wixData.query("myCollection")
6 .find()
7 .then( (results) => {
8 let resultPageSize = results.pageSize; // 50
9 } ) ;