Skip to content

WindowedFetchFunction

WindowedFetchFunction<T> = (cursor, createdTimeCursor) => Promise<PaginatedList<T>>

Defined in: src/helpers/pagination.helpers.ts:221

Fetch function for windowed row collection. It extends PaginatedFetchFunction with a second parameter: the ISO 8601 created_time lower bound for the next window. This parameter appears only after the previous window hits the query result limit (request_status.type === 'incomplete'). Merge this bound into your own created_time-ascending query, for example filter.createdTime().onOrAfter(createdTimeCursor).

T extends object

string | undefined

string | undefined

Promise<PaginatedList<T>>