Skip to main content
Anchor to MetaobjectFieldDefinition

MetaobjectFieldDefinition

object

Defines a field for a MetaobjectDefinition with properties such as the field's data type and validations.

String

The administrative description.

String!non-null

A key name used to identify the field within the metaobject composition.

String!non-null

The human-readable name.

Boolean!non-null

Required status of the field within the metaobject composition.

MetafieldDefinitionType!non-null

The type of data that the field stores.

[MetafieldDefinitionValidation!]!non-null

A list of validation options for the field. For example, a field with the type date can set a minimum date requirement.

Anchor to visibleToStorefrontApivisibleToStorefrontApi
Boolean!non-null

Whether this field is visible within the Storefront API.


Was this section helpful?