import { DaffShopifyProductService } from '@daffodil/product/driver/shopify'
A service for getting DaffProducts DaffProduct
from apollo shopify product requests.
@Injectable()
class DaffShopifyProductService implements DaffProductServiceInterface {
defaultLength: number = 20
getAll(): Observable<DaffProduct[]>
get(productId: string): Observable<DaffProductDriverResponse>
getByUrl(url: string): Observable<DaffProductDriverResponse>
}
Observable<DaffProduct[]>
Get all products.
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 |