totalPages


totalPagesnumberRead-only

Returns the total number of pages the query produced.

The page size is defined by the limit() method, can be retrieved using the pageSize property, and navigating through pages is done with the prev() and next() methods.

Note: This property is only available when the query's options.returnTotalCount parameter is set to true.

Did this help?