Skip to content

Commit 0e8d527

Browse files
author
Sashko Stubailo
authored
Merge pull request apollographql#3375 from crash7/fix-add-missing-import
Fix: add missing import in caching update docs
2 parents 2867a6d + d13927b commit 0e8d527

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/source/advanced/caching.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -303,6 +303,8 @@ mutate({
303303
Using `update` gives you full control over the cache, allowing you to make changes to your data model in response to a mutation in any way you like. `update` is the recommended way of updating the cache after a query. It is explained in full [here](../api/react-apollo.html#graphql-mutation-options-update).
304304

305305
```javascript
306+
import CommentAppQuery from '../queries/CommentAppQuery';
307+
306308
const SUBMIT_COMMENT_MUTATION = gql`
307309
mutation submitComment($repoFullName: String!, $commentContent: String!) {
308310
submitComment(

0 commit comments

Comments
 (0)