Note: You are viewing documentation for version v0 of Python. View the latest version.
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 collection
query = collection("profiles").allow('reading').query().limit(1000)
# Fetch first page
results = await query.fetch()
# Fetch next page
if 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.