GitHub

shopifyImageTransformer

Helper

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.

Parameters

Parameternode: ShopifyImageNode
Description

default ShopifyImageNode created by factory (id initially left empty)

Parametertype: string
Description

name of Shopify image object (e.g. CollectionImage, ProductImage)