GitHub

DaffShopifyProductService

A service for getting DaffProducts from apollo shopify product requests.

import { DaffShopifyProductService } from '@daffodil/product/driver/shopify'
@Injectable()
class DaffShopifyProductService implements DaffProductServiceInterface {
  defaultLength: 20
  getByUrl(url: string): Observable<DaffProductDriverResponse>
  getAll(): Observable<DaffProduct[]>
  getBestSellers(): Observable<DaffProduct[]>
  get(productId: string): Observable<DaffProductDriverResponse>
}

Properties

Name Type Description
defaultLength 20
getByUrl Observable<DaffProductDriverResponse>

Get a product by URL.

getAll Observable<DaffProduct[]>

Get all products.

getBestSellers Observable<DaffProduct[]>

Get best selling products.

get Observable<DaffProductDriverResponse>

Get a product by Id.