GitHub

DaffShopifyProductService

class

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(): Observable<DaffProduct[]>
  get(productId: string): Observable<DaffProductDriverResponse>
  getByUrl(url: string): Observable<DaffProductDriverResponse>
}

() Methods

getAll
Observable<DaffProduct[]>

Get all products.

get
Observable<DaffProductDriverResponse>

Get a product by Id.

@param productId - A string of the product ID.

Parameters
ParameterproductId: string
Description
getByUrl
Observable<DaffProductDriverResponse>

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