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.
Type Parameters
Section titled “Type Parameters”T extends object
Parameters
Section titled “Parameters”fetchWindow
Section titled “fetchWindow”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.
Returns
Section titled “Returns”Promise<T[]>
Array containing all rows across all windows