From d5e53757c589443b73eb8feef77eb6bda5a411fb Mon Sep 17 00:00:00 2001 From: Avi Nerenberg Date: Wed, 11 May 2022 12:13:05 -0400 Subject: [PATCH] `readQuery` clarification (#9195) * `readQuery` clarification Clarifies that variables passed to `readQuery` are evaluated using strict equality. * Update cache-interaction.mdx * Update docs/source/caching/cache-interaction.mdx Co-authored-by: JV --- 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 23b5e7012e2..37a73e2580e 100644 --- a/docs/source/caching/cache-interaction.mdx +++ b/docs/source/caching/cache-interaction.mdx @@ -40,7 +40,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. Variables of mismatched types will return `null`. id: 5, }, });