A single metafield contained in a metaobject.
Fields
key ● String!non-null
A unique identifier for a metafield within its namespace.
type ● String!non-null
The data type for the metafield. Valid values are:
  • single_line_text_field: A single-line text field
  • list.single_line_text_field: Multiple single-line text fields
  • multi_line_text_field: Multi-line text field
  • rich_text_field: Rich text field
  • color: A single color
  • list.color: Multiple colors
  • date: A single date
  • list.date: Multiple dates
  • date_time: A single date and time. Format: ISO 8601.
  • list.date_time: Multiple dates and times. Format: ISO 8601.
  • url: A single URL
  • list.url: Multiple URLs
  • file_reference: A single file. Support a PDF or image file within 10 MB. Supported image formats: JPG, JPEG, PNG, and GIF.
  • list.file_reference: Multiple files. Support PDF or image files and each file must be within 10 MB. Supported image formats: JPG, JPEG, PNG, and GIF.
  • json: JSON
  • weight: A single weight with a unit
  • list.weight: Multiple weights with units
  • volume: A single volume with a unit
  • list.volume: Multiple volumes with units
  • dimension: A single size with a unit
  • list.dimension: Multiple sizes with units
  • number_integer: A single integer
  • list.number_integer: Multiple integers
  • number_decimal: A single decimal
  • list.number_decimal: Multiple decimals
  • rating: A single rating
  • list.rating: Multiple ratings
  • page_reference: A single page
  • list.page_reference: Multiple pages
  • product_reference: A single product
  • list.product_reference: Multiple products
  • variant_reference: A single product variant
  • list.variant_reference: Multiple product variants
  • collection_reference: A single product collection
  • list.collection_reference: Multiple product collections
  • boolean: Boolean type. Valid values are true and false.
  • money: Amount with a currency
For more information about metafields, refer to Guide to Using Metafields Feature.
value ● String!non-null
The data stored in the metafield.
Map
MetaobjectField
Was this article helpful to you?