GitHub

DaffShopifyProductService

Service

import { DaffShopifyProductService } from '@daffodil/product/driver/shopify'

A service for getting DaffProducts DaffProduct from apollo shopify product requests.

@Injectable()
class DaffShopifyProductService implements DaffProductServiceInterface {
  defaultLength: number = 20

  getAll(): any
  get(productId: string): any
  getByUrl(url: string): any
}

() Methods

getAll
any

Get all products.

get
any

Get a product by Id.

@param productId - A string of the product ID.

Parameters
ParameterproductId: string
Description
getByUrl
any

Get a product by URL.

@param url - A string of the product URL.

See DaffLocatable for more information on the requirements for the url argument of DaffProduct.

Parameters
Parameterurl: string
Description