GitHub

ShopifyHasMetafields

Type

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

Implemented by resources that support custom metadata through Metafield objects. Types like Product, Collection, and Customer implement this interface to provide consistent access to metafields.

You can retrieve a single metafield by namespace and key, or fetch multiple metafields in a single request. If you omit the namespace, then the app-reserved namespace is used by default.

interface ShopifyHasMetafields {
  metafield: ShopifyMetafield
  metafields: ShopifyMetafield[]
}

Properties

metafield
ShopifyMetafield

A custom field, including its namespace and key, that's associated with a Shopify resource for the purposes of adding and storing additional information.

metafields
ShopifyMetafield[]

A list of custom fields that a merchant associates with a Shopify resource.