zino-hofmann / graphql-flutter

A GraphQL client for Flutter, bringing all the features from a modern GraphQL client to one easy to use package.
https://zino-hofmann.github.io/graphql-flutter
MIT License
3.25k stars 620 forks source link

Fetch result from mutations offline #1122

Closed Olega95 closed 2 years ago

Olega95 commented 2 years ago

Hello. I may not have quite a trivial task, but there is no solution to it, due to the fact that you do not have its implementation. Tell me, could you add the following function to the client: when a mutation is made, when the Internet is turned off (I use a self-written Link on offline mutation), in response to a mutation I get data: null. In order to update the cache manually, I need to get the data. Therefore, I have a question, is it possible to add to the client the ability to display mutated data in the update handler in the result when the Internet is turned off? That would be very cool! Thank you!