diff --git a/exchanges/graphcache/src/extras/relayPagination.ts b/exchanges/graphcache/src/extras/relayPagination.ts index 86fbe7f61f..534223e538 100644 --- a/exchanges/graphcache/src/extras/relayPagination.ts +++ b/exchanges/graphcache/src/extras/relayPagination.ts @@ -128,7 +128,7 @@ const getPage = ( entityKey: string, fieldKey: string ): Page | null => { - const link = ensureKey(cache.resolveFieldByKey(entityKey, fieldKey)); + const link = ensureKey(cache.resolve(entityKey, fieldKey)); if (!link) return null; const typename = cache.resolve(link, '__typename') as string; diff --git a/exchanges/graphcache/src/extras/simplePagination.ts b/exchanges/graphcache/src/extras/simplePagination.ts index b228ac8297..110c20c0d6 100644 --- a/exchanges/graphcache/src/extras/simplePagination.ts +++ b/exchanges/graphcache/src/extras/simplePagination.ts @@ -67,7 +67,7 @@ export const simplePagination = ({ continue; } - const links = cache.resolveFieldByKey(entityKey, fieldKey) as string[]; + const links = cache.resolve(entityKey, fieldKey) as string[]; const currentOffset = args[offsetArgument]; if (