createRefetchableFragment<TQuery
, TKey
>(fragment
, key
): [DataProxy
<KeyTypeData
<TKey
>>, RefetchFnDynamic
<TQuery
, TKey
>]
Name | Type |
---|---|
TQuery |
extends OperationType |
TKey |
extends Readonly <{ $data? : unknown ; $fragmentSpreads : unknown }> |
Name | Type |
---|---|
fragment |
GraphQLTaggedNode |
key |
Accessor <TKey > |
[DataProxy
<KeyTypeData
<TKey
>>, RefetchFnDynamic
<TQuery
, TKey
>]
createRefetchableFragment<TQuery
, TKey
>(fragment
, key
): [DataProxy
<KeyTypeData
<TKey
> | null
| undefined
>, RefetchFnDynamic
<TQuery
, TKey
>]
Name | Type |
---|---|
TQuery |
extends OperationType |
TKey |
extends Readonly <{ $data? : unknown ; $fragmentSpreads : unknown }> |
Name | Type |
---|---|
fragment |
GraphQLTaggedNode |
key |
Accessor <undefined | null | TKey > |
[DataProxy
<KeyTypeData
<TKey
> | null
| undefined
>, RefetchFnDynamic
<TQuery
, TKey
>]