Search...
totalCount
Returns the total number of items that match the query.
Description
The totalCount
returns the total number of items that match the query,
not just the number of items in the current page.
Type:
numberRead Only
Was this helpful?
Get the total number of items that match a query
Copy Code
1let resultCount = results.totalCount; // 150
Perform a query and get the total number of matching items
Copy Code
1import { members } from "wix-groups-backend";23// ...45members.queryGroupMembers()6 .find()7 .then((results) => {8 let resultCount = results.totalCount; // 1509 })10 .catch((error) => {11 console.error(error);12 });