Skip to main content

Class: ShopService

Defined in: service/ShopService.ts:37

Backwards-compatible class form. New code should call shopService(client).

Constructors

Constructor

new ShopService(client): ShopService

Defined in: service/ShopService.ts:39

Parameters

client

GraphQLClient

Returns

ShopService

Methods

getShop()

getShop(variables): Promise<Shop>

Defined in: service/ShopService.ts:44

Fetches a single shop by ID

Parameters

variables

ShopVariables

Shop ID to fetch

Returns

Promise<Shop>


getShops()

getShops(): Promise<Shop[]>

Defined in: service/ShopService.ts:48

Fetches a list of shops

Returns

Promise<Shop[]>