Skip to main content
Log inSign up

Shopify uses cookies to provide necessary site functionality and improve your experience. By using our website, you agree to our privacy policy and our cookie policy.

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

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

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?

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.


Was this section helpful?