Iskra API Reference
    Preparing search index...

    Function paginateByCursor

    • One page of query after a cursor (keyset pagination): unlike OFFSET, a deep page costs no more than the first, and rows inserted meanwhile do not shift the pages. The query is ordered by keys; leave orderBy out. A DATE or TIMESTAMP key must be declared { key, type: 'timestamp' }.

      Type Parameters

      • DB
      • TB extends string | number | symbol
      • O
      • K extends string

      Parameters

      Returns Promise<CursorPage<O>>