Introduction

When you execute a query with the find() function, it returns a Promise that resolves to a GroupMembersQueryResult object. This object contains the items that match the query, information about the query itself, and functions for paging through the query results.

Did this help?

currentPage


currentPagenumberRead-only

Returns the index of the current results page number.

The currentPage is a zero-based index of the current page of 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.

The currentPage property returns undefined if the query returned no results.

JavaScript
Did this help?

items


itemsArray<GroupMember>Read-only

Returns the items that match the query.

The current page of group members retrieved by the query.

Note: When no items match the query, the items array is empty.

To paginate your query results, use the GroupMembersQueryResult pagination properties and functions.

Perform a query and get the returned items from the result
JavaScript
Did this help?

length


lengthnumberRead-only

Returns the number of items in the current results page.

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
Did this help?

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
Did this help?

query


Returns the GroupMembersQueryBuilder object used to get the current results.

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

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