When you execute a query with the find()
function, it returns a Promise that resolves to a ContactsQueryResult
object.
This object contains the items that match the query, information about the
query itself, and functions for paging through the query results.
Returns the items that match the query.
The current page of items retrieved by the query.
List of contacts.
Note: When no items match the query, the items array is empty.
To paginate your query results, use the ContactsQueryResult
pagination properties and functions.
Returns the ContactsQueryBuilder
object used to get the current results.
Use the query
property to create and run a new query
by chaining additional ContactsQueryBuilder
functions to it.
Indicates if the query has more results.
Indicates if the query has previous results.
function hasPrev(): boolean;
let hasPrev = results.hasPrev(); // false