GitHub

shopifyIdTransformer

Helper

import { shopifyIdTransformer } from '@daffodil/driver/shopify'

Transforms a DaffIdentifiable id and object type into a Shopify object id

function shopifyIdTransformer(
  id: string
  type: string
): string

Parameters

Parameterid: string
Description

numerical code that represents a shopify object id

Parametertype: string
Description

Shopify type (e.g. Product, Collection, CollectionImage, etc.)