GitHub

DaffShopifyCategoryService

Service

import { DaffShopifyCategoryService } from '@daffodil/category/driver/shopify'

A service for making shopify apollo queries for categories. Should be provided via the DaffCategoryDriver token.

@Injectable()
class DaffShopifyCategoryService implements DaffCategoryServiceInterface {
  get(categoryRequest: DaffCategoryIdRequest): any
  getByUrl(categoryRequest: DaffCategoryUrlRequest): any
}

() Methods

get
any

Fetch a category by its ID.

Parameters
ParametercategoryRequest: DaffCategoryIdRequest
Description
getByUrl
any

Fetch a category by its associated URL.

Parameters
ParametercategoryRequest: DaffCategoryUrlRequest
Description