Skip to main content
Log inSign up
Anchor to metafieldDefinitionTypes

metafieldDefinitionTypes

query

Each metafield definition has a type, which defines the type of information that it can store. This type is enforced across every instance of the resource that owns the metafield definition.

Refer to the list of supported metafield types.

Anchor to MetafieldDefinitionTypeMetafieldDefinitionType

A metafield definition type provides basic foundation and validation for a metafield.

category
non-null

The category associated with the metafield definition type.

name
non-null

The name of the type for the metafield definition. See the list of supported types.

supportedValidations
non-null

The supported validations for a metafield definition type.

supportsDefinitionMigrations
non-null

Whether metafields without a definition can be migrated to a definition of this type.

valueType
non-nullDeprecated

The value type for a metafield created with this definition type. valueType is deprecated and name should be used for type information.


Was this section helpful?