I am using Flutter graphql_client which implemented pretty much as in this example
My client creation looks like this:
abstract class AbstractAdapter {
Link get httpLink;
GraphQLClient client;
AbstractAdapter() {
client = GraphQLClient(cache: InMemoryCache(), link: httpLink);
}
Future<QueryResult> query(QueryOptions options) {
return client.query(options);
}
}
It works pretty well but the problem is with the caching If I send the same mutation twice, it returns the cached result instead of sending it again!
Appreciates any help.