import { DaffMagentoProductService } from '@daffodil/product/driver/magento'
A service for making magento apollo queries for products of type, DaffProduct.
@Injectable()
class DaffMagentoProductService implements DaffProductServiceInterface {
get(productId: string): Observable<DaffProductDriverResponse>
getByUrl(url: string): Observable<DaffProductDriverResponse>
getAll(): Observable<DaffProduct[]>
}
Observable<DaffProductDriverResponse>Get a product by Id.
@param productId - A string of the product ID.
| Parameter | productId: string |
|---|---|
| Description |
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.
| Parameter | url: string |
|---|---|
| Description |
Observable<DaffProduct[]>Get all products.