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 JoinRequestsQueryBuilder object used to get the current results.

Use the query property to create and run a new query by chaining additional JoinRequestsQueryBuilder functions to it.

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

totalCount


totalCountnumberRead-only

Returns the total number of items that match the query.

The totalCount returns the total number of items that match the query, not just the number of items in the current page.

JavaScript
let resultCount = results.totalCount; // 150
Did this help?

totalPages


totalPagesnumberRead-only

Returns the total number of pages the query produced.

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 resultPages = results.totalPages; // 3
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 JoinRequestsQueryResult may change.

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