You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/caching/cache-transactions.mdx
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,6 +48,8 @@ A [`LocalCacheMutation`](https://www.apollographql.com/docs/ios/docc/documentati
48
48
49
49
When a query or fragment with this directive is defined, the code generation engine will generate a mutable model that can be used with a [`ReadWriteTransaction`](https://www.apollographql.com/docs/ios/docc/documentation/apollo/apollostore/readwritetransaction) to write data to the cache.
50
50
51
+
> Any fragments referenced within a local cache mutation operation will also be generated as mutable. This will happen regardless of whether they are defined with the `@apollo_client_ios_localCacheMutation` directive or not. Code generation does this so that _all_ data related to the local cache mutation is mutable.
52
+
51
53
> Your query definitions can also define variables for these operations to mutate cache data for fields with input arguments. For more information see our [operation argument documentation](./../fetching/operation-arguments).
0 commit comments