Skip to main content
HASP uses cursor-based pagination exclusively. Never use offset-based pagination.

Manual Pagination

paginateRecords(entityKey, options?) — Async Generator

The SDK provides an async generator that handles cursor passing automatically:

Options

Safety Limits

To prevent unbounded iteration on large entities, use maxPages and/or maxRecords:

Error Handling During Pagination

paginateRecords and all read methods are allowed during maintenance mode.

Page Size Limits

Requesting more than 100 records per page throws a validation error.