Search...
totalPages
Returns the total number of pages the query produced.
Description
Type:
numberRead Only
Was this helpful?
Get the total number of pages in a query result
Copy Code
1let resultPages = results.totalPages; // 3
Perform a query and get the total number of pages in the result
Copy Code
1import { groups } from "wix-groups-backend";23// ...45groups.queryGroups()6 .find()7 .then((results) => {8 let resultPages = results.totalPages; // 39 })10 .catch((error) => {11 console.error(error);12 });