Skip to main content
Anchor to MetafieldDefinitionType

MetafieldDefinitionType

object

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

String!
non-null

The category associated with the metafield definition type.

String!
non-null

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

Anchor to supportedValidationssupportedValidations
[MetafieldDefinitionSupportedValidation!]!
non-null

The supported validations for a metafield definition type.

Anchor to supportsDefinitionMigrationssupportsDefinitionMigrations
Boolean!
non-null

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

MetafieldValueType!
non-nullDeprecated

Was this section helpful?

query

The available metafield types that you can use when creating MetafieldDefinition objects. Each type specifies what kind of data it stores (such as boolean, color, date, or references), its category, and which validations it supports.

For a list of supported types and their capabilities, refer to the metafield types documentation.


Was this section helpful?