totalCount


totalCountnumberRead-only

Returns the total number of documents that match the search.

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

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