pageSize


pageSizenumberRead-only

Returns the query page size.

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.

JavaScript
let resultPageSize = results.pageSize; // 50
Did this help?

query


Returns the ExtendedFieldsQueryBuilder object used to get the current results.

Use the query property to create and run a new query by chaining additional ExtendedFieldsQueryBuilder functions to it. You can filter only on properties that have not not already been used in the previous query.

JavaScript
let resultQuery = results.query;
Did this help?

hasNext( )


Indicates if the query has more results.

Method Declaration
Copy
function hasNext(): boolean;
Request
This method does not take any parameters
Returns
Return Type:boolean
JavaScript
let hasNext = results.hasNext(); // true
Did this help?

hasPrev( )


Indicates if the query has previous results.

Method Declaration
Copy
function hasPrev(): boolean;
Request
This method does not take any parameters
Returns
Return Type:boolean
Get whether the query result object has previous results
JavaScript
let hasPrev = results.hasPrev(); // false
Did this help?

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 ExtendedFieldsQueryResult may change.

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