Skip to content

API ReferenceSetup and configurationInterface

AnvilQueryDefinition\<Value\>

Framework-neutral definition of one SDK read.

Remarks

The shape is deliberately SDK-owned and contains no TanStack Query types or freshness policy. Pass it to the query library of your choice, or call queryFn directly.

Extended by

Type Parameters

Type Parameter
Value

Properties

queryFn

readonly queryFn: () => Promise<Value>;

Performs the fresh scalar core read.

Returns

Promise<Value>


queryKey

readonly queryKey: readonly unknown[];

Stable, normalized identity of the read and its SDK environment.