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): any
getByUrl(url: string): any
getAll(): any
}
anyGet a product by Id.
@param productId - A string of the product ID.
| Parameter | productId: string |
|---|---|
| Description |
anyGet 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 |
anyGet all products.