GitHub

DaffMagentoCategoryService

import { DaffMagentoCategoryService } from '@daffodil/category/driver/magento'

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

@Injectable()
class DaffMagentoCategoryService implements DaffCategoryServiceInterface {
  get(categoryRequest: DaffCategoryIdRequest): Observable<DaffGetCategoryResponse>
  getByUrl(categoryRequest: DaffCategoryUrlRequest): Observable<DaffGetCategoryResponse>
}

() Methods

get
Observable<DaffGetCategoryResponse>

Fetch a category by its ID.

Parameters
ParametercategoryRequest: DaffCategoryIdRequest
Description
getByUrl
Observable<DaffGetCategoryResponse>

Fetch a category by its associated URL.

Parameters
ParametercategoryRequest: DaffCategoryUrlRequest
Description