#
Interface: UseLazyQuery<GeneratedSchema>#
Type parametersName | Type |
---|---|
GeneratedSchema | object |
GeneratedSchema.query | object |
#
Callableâ–¸ UseLazyQuery<TData, TArgs>(queryFn
: (query
: GeneratedSchema[query], args
: TArgs) => TData, options?
: UseLazyQueryOptions<TData>): readonly [(...opts
: undefined extends TArgs ? [object?] : [{ args
: TArgs ; fetchPolicy?
: LazyFetchPolicy ; fn?
: (query
: GeneratedSchema[query], args
: TArgs) => TData }]) => Promise<TData>, UseLazyQueryState<TData>]
#
Type parameters:Name | Default |
---|---|
TData | unknown |
TArgs | undefined |
#
Parameters:Name | Type |
---|---|
queryFn | (query : GeneratedSchema[query], args : TArgs) => TData |
options? | UseLazyQueryOptions<TData> |
Returns: readonly [(...opts
: undefined extends TArgs ? [object?] : [{ args
: TArgs ; fetchPolicy?
: LazyFetchPolicy ; fn?
: (query
: GeneratedSchema[query], args
: TArgs) => TData }]) => Promise<TData>, UseLazyQueryState<TData>]
Defined in: query/useLazyQuery.ts:86