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

graphql cache #1221

Closed isshort closed 2 years ago

isshort commented 2 years ago

Graphql data is not updating without reloading the page

firstly I am running a graphql query example get list of product Than I'm doing update operation like favorite the product

vincenzopalazzo commented 2 years ago

we need an example for this!

You can use our endpoint https://api.chat.graphql-flutter.dev/graphql

isshort commented 2 years ago

Thanks @vincenzopalazzo for your quick response

My query is

 client=GraphQLClient(
     cache: GraphQLCache(),
      link:  "MY LINK"),
isshort commented 2 years ago

This the screen shot Screen Shot 2022-09-01 at 16 30 15

isshort commented 2 years ago

Thanks Mr @vincenzopalazzo for your response me quickly I found my question at [beingadrian](https://github.com/beingadrian) issue It was with fetchPolicy