Skip to content

Commit

Permalink
readQuery clarification (#9195)
Browse files Browse the repository at this point in the history
* `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 <jvajda@apollographql.com>
  • Loading branch information
avinoamsn and jpvajda committed May 11, 2022
1 parent 2c49a8f commit d5e5375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/caching/cache-interaction.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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,
},
});
Expand Down

0 comments on commit d5e5375

Please sign in to comment.