Custom fields that store additional information about a Shopify resource, such as products, orders, and many more. Using metafields with Shopify Functions enables you to customize the checkout experience.
String!
)
Required
The unique identifier for the metafield within its namespace. A metafield is composed of a
namespace and a key, in the format namespace.key
.
String
)
A category that organizes a group of metafields. Namespaces are used to prevent naming conflicts between different apps or different parts of the same app. If omitted, then the app-reserved namespace is used.
String!
)
Required
The type of data that's stored in the metafield.
String!
)
Required
The data to store in the metafield.