Skip to main content

Interface: Prefetch<GeneratedSchema>#

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 Sam Denty