GitHub

DaffMagentoProductService

A service for making magento apollo queries for products of type, DaffProduct.

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

Properties

Name Type Description
get Observable<DaffProductDriverResponse>

Get a product by Id.

getByUrl Observable<DaffProductDriverResponse>

Get a product by URL.

getAll Observable<DaffProduct[]>

Get all products.

getBestSellers Observable<DaffProduct[]>

Get best selling products.