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 615 forks source link

Example needed for cache #1402

Open skillkrio opened 8 months ago

skillkrio commented 8 months ago

Hi i am trying to cache graphql api call(InMemory) . I had a function which takes graphql query string. I had written the cache to client.cache.writequery and the seperate function to read them client.cache.readquery. but it has null value while reading them. I had saw the network tab it still calls the api even setting up the cache. Can you provide minimum example for it to not make api call if it's already cached.

micimize commented 8 months ago

@skillkrio I no longer maintain this project. Also generally, it is better to avoid tagging maintainers directly when initially opening an issue. We all configure our notification preferences already based on our current level of engagement with the project.

skillkrio commented 8 months ago

@skillkrio I no longer maintain this project. Also generally, it is better to avoid tagging maintainers directly when initially opening an issue. We all configure our notification preferences already based on our current level of engagement with the project.

I had removed all the Maintainer tags.