I am attempting to take some data from the apolloStore cache with read(Query(id)).execute() modify a field on the returned query then update with writeAndPublish() back into the cache. However the generated types have read-only val tacked on from the generate gradle task provided by apollo. Is there a simple way around this?
maxgdn
01/12/2021, 7:41 PM
I only feel like I can call .copy() many times and pass in the data I would like to change as the values are deeply nested in the schema.
I am attempting to do something like