import { ShopifyMetafield } from '@daffodil/driver/shopify'
Metafields represent custom metadata attached to a resource. Metafields can be sorted into namespaces and are comprised of keys, values, and value types.
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. |