Search...
totalPages
Returns the total number of pages the query produced.
Description
Type:
undefined
|
numberWas 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 { tags } from 'wix-blog-backend';23export async function myQueryFunction() {4 const results = await tags.queryTags().find();56 return results.totalPages;7}8