Search.../

totalCount

Returns the total number of items that match the reference query.

Description

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

Type:

numberRead Only

Was this helpful?

Get the total number of items in a reference query result

Copy Code
1let resultCount = results.totalCount; // 150
Perform a reference query and get the total number of items in the result

Copy Code
1import wixData from 'wix-data';
2
3// ...
4
5wixData.queryReferenced("movies", "00001", "actors")
6 .then((results) => {
7 let resultCount = results.totalCount; // 150
8 }) ;