- useFragment<TType>(_documentNode, fragmentType): TType
Parameters
fragmentType: [TType] extends [{
$fragmentName?: TKey;
}]
? TKey extends string
? {
$fragmentRefs?: {
[key in string]: TType
};
}
: never
: never
- useFragment<TType>(_documentNode, fragmentType): TType | null | undefined
Parameters
fragmentType: undefined | null | ([TType] extends [{
$fragmentName?: TKey;
}]
? TKey extends string
? {
$fragmentRefs?: {
[key in string]: TType
};
}
: never
: never)
Returns TType | null | undefined
- useFragment<TType>(_documentNode, fragmentType): ReadonlyArray<TType>
Parameters
fragmentType: readonly ([TType] extends [{
$fragmentName?: TKey;
}]
? TKey extends string
? {
$fragmentRefs?: {
[key in string]: TType
};
}
: never
: never)[]
Returns ReadonlyArray<TType>
- useFragment<TType>(_documentNode, fragmentType): ReadonlyArray<TType> | null | undefined
Parameters
fragmentType: undefined | null | readonly ([TType] extends [{
$fragmentName?: TKey;
}]
? TKey extends string
? {
$fragmentRefs?: {
[key in string]: TType
};
}
: never
: never)[]
Returns ReadonlyArray<TType> | null | undefined