Python - collection.query.pagingFrom()
Set a point to resume a query from, this is required when continuing a paginated query response.
from nitric.resources import collectionquery = collection("profiles").allow('reading').query().limit(1000)# Fetch first pageresults = await query.fetch()# Fetch next pageif results.paging_token:results = await query.page_from(results.paging_token).fetch()
Parameters
- Name
pagingToken
- Required
- Required
- Type
- object
- Description
The paging token to apply to the query. Tokens are returned from
query().fetch()
when results cannot be returned in a single page.
See also
Last updated on Dec 19, 2024