ferry
ferry copied to clipboard
How to ignore cache for a specific query
Hello , i am new with flutter i would like to ignore cache for specific query that needs latest data
Future<void> refreshProfile() async {
var req = GMeReq();
var data = await GraphQLService()
.client
.request(req)
.firstWhere((data) => data.loading == false);
currentProfile.value = User.fromMeData(data.data);
await saveAccount();
}
kindly help
pass .fetchPolicy to request. Either .NoCache or .NetworkOnly
thank you very much
could you provide a full example how to use pagination ? thanks