Skip to content

collectAllDataSourceRows

collectAllDataSourceRows<T>(fetchWindow): Promise<T[]>

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

Collects every row of a data source query into an array. It works around the API’s 10,000-result-per-query cap. See iterateAllDataSourceRows for the windowing behavior.

T extends object

WindowedFetchFunction<T>

Function that fetches one page. Pass the current cursor. After a window hits the cap, also pass a created_time lower bound for the next window.

Promise<T[]>

Array containing all rows across all windows