getShop method

Future<Shop> getShop()

Returns the Shop.

Implementation

Future<Shop> getShop() async {
  final WatchQueryOptions _options = WatchQueryOptions(
    document: gql(getShopQuery),
    fetchPolicy: ShopifyConfig.fetchPolicy,
  );
  final QueryResult result = await _graphQLClient!.query(_options);
  checkForError(result);
  return Shop.fromJson(result.data!['shop']);
}