Skip to content

Commit

Permalink
Update cache-configuration.mdx
Browse files Browse the repository at this point in the history
  • Loading branch information
smyrick authored Apr 22, 2024
1 parent d0516a8 commit 396a27b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/caching/cache-configuration.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -190,9 +190,9 @@ const cache = new InMemoryCache({
// The first argument is the reference to the record to be written, and the second is the runtime context
keyFields: (location, context) => {
if (context.readField("location", context.readField("state"))) {
return ["city, "state", "country"];
return ["city", "state", "country"];
} else {
return ["city, "country"];
return ["city", "country"];
}
}
}
Expand Down

0 comments on commit 396a27b

Please sign in to comment.