Skip to main content

Function: shopService()

shopService(client): object

Defined in: service/ShopService.ts:10

Service class for Shop-related GraphQL operations

Parameters

client

GraphQLClient

Returns

getShop()

getShop(variables): Promise<Shop>

Fetches a single shop by ID

Parameters

variables

ShopVariables

Shop ID to fetch

Returns

Promise<Shop>

Promise<Shop> The shop data

Deprecated

The upstream shop query is deprecated; this query will be removed in a future version.

getShops()

getShops(): Promise&lt;Shop[]>

Fetches a list of shops

Returns

Promise&lt;Shop[]>

Promise<Shop[]> The shops data array

Deprecated

The upstream shops query is deprecated; this query will be removed in a future version.