Function: createPaginationFragment

createPaginationFragment<TQuery, TKey>(fragment, key): CreatePaginationFragmentReturn<TQuery, TKey, KeyTypeData<TKey>>

Type parameters

Name Type
TQuery extends OperationType
TKey extends Readonly<{ $data?: unknown ; $fragmentSpreads: unknown }>

Parameters

Name Type
fragment GraphQLTaggedNode
key Accessor<TKey>

Returns

CreatePaginationFragmentReturn<TQuery, TKey, KeyTypeData<TKey>>

createPaginationFragment<TQuery, TKey>(fragment, key): CreatePaginationFragmentReturn<TQuery, TKey | null, KeyTypeData<TKey> | null | undefined>

Type parameters

Name Type
TQuery extends OperationType
TKey extends Readonly<{ $data?: unknown ; $fragmentSpreads: unknown }>

Parameters

Name Type
fragment GraphQLTaggedNode
key Accessor<undefined | null | TKey>

Returns

CreatePaginationFragmentReturn<TQuery, TKey | null, KeyTypeData<TKey> | null | undefined>