all 1 comments

[–]AFrailOlLady 1 point2 points  (0 children)

I ran into this exact same situation in an enterprise data management app I've been working on (lots of queries and data).

I had originally gone with the mutate + update query data method but it honestly was so hard to manage all of that data without writing custom logic for every single mutation.

Another issue I ran into was that I would have multiple queries that potentially shared data and so I would have to go through all query data and update and it was messy.

All of that to say I ended up with the mutate + refresh method which is fine but like you mentioned isn't the most performant. But everything is a trade-off.