API ReferenceSetup and configurationInterface
AnvilCollectionQueryDefinition\<Value\>
Framework-neutral definition of a cursor-paged SDK collection read.
Extends
AnvilQueryDefinition<CollectionPage<Value>>
Extended by
LetterOfCreditsQueryDefinitionLetterOfCreditHistoryQueryDefinitionCollateralReservationsQueryDefinition
Type Parameters
| Type Parameter |
|---|
Value |
Properties
initialCursor
readonly initialCursor: string | null;Cursor used for the first page.
queryFn
readonly queryFn: (options?) => Promise<CollectionPage<Value>>;Performs the collection read described by the definition. It may return one page or an all-pages
aggregate when the query supports fetchAll. Collection execution controls remain separate from
request parameters and never enter the key.
Parameters
| Parameter | Type |
|---|---|
options? | ReadExecutionOptions |
Returns
Promise<CollectionPage<Value>>
Overrides
queryKey
readonly queryKey: readonly unknown[];Stable, normalized identity of the read and its SDK environment.
Inherited from
queryPage
readonly queryPage: (cursor, options?) => Promise<CollectionPage<Value>>;Fetches one atomic page; execution options never enter the key.
Parameters
| Parameter | Type |
|---|---|
cursor | string | null |
options? | ReadExecutionOptions |
Returns
Promise<CollectionPage<Value>>