Skip to content

Commit

Permalink
Merge pull request #1954 from kimroen/patch-1
Browse files Browse the repository at this point in the history
Fix inline code formatting
  • Loading branch information
designatednerd authored Sep 22, 2021
2 parents 69d0a2d + a11d516 commit c603cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/source/caching.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ There are 2 primary ways you will want to manually update the cache. Either you'

Manual Scenario A

1. You use the id of the object (after setting up the afore mentioned ```swift apollo.cacheKeyForObject = { $0["id"] } ```) to fetch and change the object. This will update any query where this object is referenced. This works well for updating queries which reference this object, but in the case of a create mutation, your queries won't contain this object to update. Which leads us into Scenario B.
1. You use the id of the object (after setting up the afore mentioned `apollo.cacheKeyForObject = { $0["id"] }`) to fetch and change the object. This will update any query where this object is referenced. This works well for updating queries which reference this object, but in the case of a create mutation, your queries won't contain this object to update. Which leads us into Scenario B.

Manual Scenario B

Expand Down

0 comments on commit c603cb6

Please sign in to comment.