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[]>
getBestSellers(): 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.
Observable<DaffProduct[]>
Get best selling products.
@deprecated in favor of @daffodil/related-products/driver
and @daffodil/upsell-products/driver
. Deprecated in version 0.81.0. Will be removed in version 0.84.0.