Skip to content

Commit

Permalink
Replace cache.resolveFieldByKey in extras sources
Browse files Browse the repository at this point in the history
  • Loading branch information
kitten committed Dec 10, 2020
1 parent e90ed54 commit d23dc0f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exchanges/graphcache/src/extras/relayPagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion exchanges/graphcache/src/extras/simplePagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
Expand Down

0 comments on commit d23dc0f

Please sign in to comment.