gql-dart / ferry

Stream-based strongly typed GraphQL client for Dart
https://ferrygraphql.com/
MIT License
602 stars 116 forks source link

Add field of custom data to local cache only #509

Open danielRi opened 1 year ago

danielRi commented 1 year ago

Hi,

pardon me if this is nonsense what I want to achieve, I havent find a solution in the docs.

I have a GraphQL API I load data remotely from, but I want to add local key/values to the loaded objects after the data is loaded. These fields I also want to update locally only. I thought I can achieve this with writeFragment or UpdateCacheHandler, but it seems Im stuck.

Is this even possible or feasible?

Thanks a lot for any input! Daniel

tpucci commented 7 months ago

Indeeed, it would be great to have something like that