I also struggled in updating arrays, especially nested. But the root cause? it requires imperative code or query refetches. But what if you could have declarative aray updates almost like simple objects?
For this, you can use normy, automatic normalization library, which brings apollo like automatic normalization and data updates, but for anything, including REST. And, as bonus, it supports array operations, even custom ones, so you can enjoy 100% automatic data updates for your whole app!
If you are interested, you can check it out here - https://github.com/klis87/normy
It is worth mentioning, that it does not really affect how you write code, it almost do not have any api surface. And you can use it with any data fetching library, like `react-query`.
Thanks, and really awaiting any feedback!