From c3ce6d000692f23d83daa502729625e440e881ef Mon Sep 17 00:00:00 2001 From: Avi Nerenberg Date: Mon, 13 Dec 2021 23:01:28 -0500 Subject: [PATCH 1/3] `readQuery` clarification Clarifies that variables passed to `readQuery` are evaluated using strict equality. --- docs/source/caching/cache-interaction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/caching/cache-interaction.mdx b/docs/source/caching/cache-interaction.mdx index 69d140aaad3..79b63d65a95 100644 --- a/docs/source/caching/cache-interaction.mdx +++ b/docs/source/caching/cache-interaction.mdx @@ -45,7 +45,7 @@ const READ_TODO = gql` // Fetch the cached to-do item with ID 5 const { todo } = client.readQuery({ query: READ_TODO, - variables: { // Provide any required variables here + variables: { // Provide any required variables here. Note that variables are evaluated using strict equality. id: 5, }, }); From 867dce3298bfb0b166a483f6e42a70845f241522 Mon Sep 17 00:00:00 2001 From: Avi Nerenberg Date: Mon, 13 Dec 2021 23:13:59 -0500 Subject: [PATCH 2/3] Update cache-interaction.mdx --- docs/source/caching/cache-interaction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/caching/cache-interaction.mdx b/docs/source/caching/cache-interaction.mdx index 79b63d65a95..51635ccb217 100644 --- a/docs/source/caching/cache-interaction.mdx +++ b/docs/source/caching/cache-interaction.mdx @@ -45,7 +45,7 @@ const READ_TODO = gql` // Fetch the cached to-do item with ID 5 const { todo } = client.readQuery({ query: READ_TODO, - variables: { // Provide any required variables here. Note that variables are evaluated using strict equality. + variables: { // Provide any required variables here. Note that variables are evaluated using strict equality, and variables of mismatched types will return `null` per the note below. id: 5, }, }); From 559d5e33ed0cd2899b1c0601a54f5ce31d230b14 Mon Sep 17 00:00:00 2001 From: JV Date: Wed, 11 May 2022 09:52:39 -0600 Subject: [PATCH 3/3] Update docs/source/caching/cache-interaction.mdx --- docs/source/caching/cache-interaction.mdx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/caching/cache-interaction.mdx b/docs/source/caching/cache-interaction.mdx index 51635ccb217..e096e4754e4 100644 --- a/docs/source/caching/cache-interaction.mdx +++ b/docs/source/caching/cache-interaction.mdx @@ -45,7 +45,7 @@ const READ_TODO = gql` // Fetch the cached to-do item with ID 5 const { todo } = client.readQuery({ query: READ_TODO, - variables: { // Provide any required variables here. Note that variables are evaluated using strict equality, and variables of mismatched types will return `null` per the note below. + variables: { // Provide any required variables here. Variables of mismatched types will return `null`. id: 5, }, });