next( )


Retrieves the next page of query results.

The next() function retrieves the next page of query results.

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.

If items are added or removed between calls to next() the values returned by ContactsQueryResult may change.

Method Declaration
Copy
function next(): Promise<ContactsQueryResult>;
Request
This method does not take any parameters
Returns
Return Type:Promise<ContactsQueryResult>
JavaScript
const nextPage = oldResults .next() .then((results) => { return results; }) .catch((error) => { console.error(error); });
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?