Iskra API Reference
    Preparing search index...

    Interface CursorPageOptions<K>

    interface CursorPageOptions<K extends string> {
        after?: string | null;
        defaultPageSize?: number;
        direction?: "asc" | "desc";
        keys: readonly [CursorKey<K>, CursorKey<K>];
        maxPageSize?: number;
        pageSize?: string | number | null;
    }

    Type Parameters

    • K extends string

    Hierarchy

    Index
    after?: string | null

    The nextCursor of the previous page; none for the first.

    defaultPageSize?: number

    Default 20.

    direction?: "asc" | "desc"

    Default 'asc'.

    keys: readonly [CursorKey<K>, CursorKey<K>]

    Columns the rows are ordered by, selected under their own names. They must not be NULL, and together unique: end with the primary key.

    maxPageSize?: number

    Default 100: a request cannot ask for a million rows at once.

    pageSize?: string | number | null

    Rows per page. Default defaultPageSize, at most maxPageSize.