Another question, sorry; in <this article> it says...
# apollo-kotlin
f
Another question, sorry; in this article it says that under certain circumstances, with certain kinds of mutations, you have to write a custom update function, which makes sense. On Android/Kotlin, is there a way of providing such an update function as a callback? Maybe using an extension method on
ApolloResponse
or on
ApolloCall
? Or would we just make the mutation call, get the
ApolloResponse
, and then manually access the cache and do a
writeOperation
?
b
On Apollo Kotlin if your mutation can't return the object for the cache, you could just follow your mutation by a query. The query will update the cache.