From 396a27bbb3476af3aa292cb5fbcfd99025d495ff Mon Sep 17 00:00:00 2001 From: Shane Myrick Date: Mon, 22 Apr 2024 09:43:31 -0700 Subject: [PATCH] Update cache-configuration.mdx --- docs/source/caching/cache-configuration.mdx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/caching/cache-configuration.mdx b/docs/source/caching/cache-configuration.mdx index 8524a6b9444..fd7ce19eb25 100644 --- a/docs/source/caching/cache-configuration.mdx +++ b/docs/source/caching/cache-configuration.mdx @@ -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"]; } } }