Skip to main content

Type Alias: MetaFieldValuePrimitive

MetaFieldValuePrimitive = string | number | boolean | MetaFieldFileValue | MetaFieldFileValue[]

Primitive value types supported by metafields.

This type union represents all the basic data types that can be stored directly in custom fields. Each type corresponds to specific CustomFieldType enum values:

  • string for TEXT, TRANSLATABLE_TEXT, MULTI_LINE_TEXT, MULTI_LINE_TRANSLATABLE_TEXT and SINGLE_SELECT fields
  • number for NUMBER fields
  • boolean for CHECKBOX fields
  • MetaFieldFileValue for FILE fields (single file)
  • MetaFieldFileValue[] for FILE fields (multiple files)

These primitive types form the foundation for all custom field values, whether used directly or as part of more complex META_OBJECT structures.