import { ShopifyMetafield } from '@daffodil/driver/shopify'
Custom metadata attached to a Shopify resource such as a Product, Collection, or Customer. Each metafield is identified by a namespace and key, and stores a value with an associated type.
Values are always stored as strings, but the type field indicates how to interpret the data. When a metafield's type is a resource reference, use the reference or references fields to retrieve the linked objects. Access metafields on any resource that implements the HasMetafields interface.
interface ShopifyMetafield {
__typename: "Metafield"
createdAt: Scalars['DateTime']['output']
description: string
id: string
key: string
namespace: string
parentResource: ShopifyMetafieldParentResource
reference: ShopifyMetafieldReference
references: ShopifyMetafieldReferenceConnection
type: string
updatedAt: Scalars['DateTime']['output']
value: string
}
__typename "Metafield" |
|---|
createdAt Scalars['DateTime']['output'] |
|---|
The date and time when the storefront metafield was created. |
description string |
|---|
The description of a metafield. |
id string |
|---|
A globally-unique ID. |
key string |
|---|
The unique identifier for the metafield within its namespace. |
namespace string |
|---|
The container for a group of metafields that the metafield is associated with. |
parentResource ShopifyMetafieldParentResource |
|---|
The type of resource that the metafield is attached to. |
reference ShopifyMetafieldReference |
|---|
Returns a reference object if the metafield's type is a resource reference. |
references ShopifyMetafieldReferenceConnection |
|---|
A list of reference objects if the metafield's type is a resource reference list. |
type string |
|---|
The type name of the metafield. Refer to the list of supported types. |
updatedAt Scalars['DateTime']['output'] |
|---|
The date and time when the metafield was last updated. |
value string |
|---|
The data stored in the metafield. Always stored as a string, regardless of the metafield's type. |