Search...
totalPages
Returns the total number of pages the query produced.
Description
Type:
number
Was this helpful?
Get
totalPages
from a query resultCopy Code
1const pageCount = results.totalPages;2
Perform a query and get
totalPages
from the resultCopy Code
1import { events } from 'wix-events.v2';23export async function myQueryFunction() {4 const results = await events.queryEvents().find();56 return results.totalPages;7}8