getShop method
Returns the Shop.
Implementation
Future<Shop> getShop({bool deleteThisPartOfCache = false}) async {
final WatchQueryOptions _options = WatchQueryOptions(
document: gql(getShopQuery),
);
final QueryResult result = await _graphQLClient!.query(_options);
checkForError(result);
if (deleteThisPartOfCache) {
_graphQLClient!.cache.writeQuery(_options.asRequest, data: {});
}
return Shop.fromJson(result.data!['shop']);
}