Skip to main content

Type parameters

NameType
GeneratedSchemaobject
GeneratedSchema.queryobject

Callable#

Prefetch<TData>(fn: (query: GeneratedSchema["query"]) => TData): TData | Promise<TData> & { schedulerPromise: Promise<SchedulerPromiseValue> }

Type parameters:#

Name
TData

Parameters:#

NameType
fn(query: GeneratedSchema["query"]) => TData

Returns: TData | Promise<TData> & { schedulerPromise: Promise<SchedulerPromiseValue> }

Defined in: packages/gqless/src/Helpers/prefetch.ts:8

Last updated on by Pablo Sáez