import { shopifyImageTransformer } from '@daffodil/driver/shopify'
Transforms an abstract ShopifyImageNode into a concrete type (e.g. ShopifyProductImageNode) by modifying the Shopify id
See ShopifyObjectTypes for more information on the requirements for the type argument.
function shopifyImageTransformer(
node: ShopifyImageNode
type: string
): ShopifyImageNode
| Parameter | node: ShopifyImageNode |
|---|---|
| Description | default ShopifyImageNode created by factory (id initially left empty) |
| Parameter | type: string |
|---|---|
| Description | name of Shopify image object (e.g. CollectionImage, ProductImage) |