API ReferenceSetup and configurationFunction
fetchAllCollectionPages()
function fetchAllCollectionPages<T, Params>( fetchPage, params, options?): Promise<CollectionPage<T>>;Fetches a complete collection atomically.
If any page fails, this promise rejects and exposes no partial aggregate.
Type Parameters
| Type Parameter |
|---|
T |
Params extends CollectionRequest |
Parameters
| Parameter | Type | Description |
|---|---|---|
fetchPage | CollectionPageFetcher<T, Params> | Page reader that accepts execution controls separately. |
params | Params | Collection filters and initial cursor. |
options | ReadExecutionOptions | Cancellation controls shared by every page. |
Returns
Promise<CollectionPage<T>>