A metafield definition type provides basic foundation and validation for a metafield.
Access Scopes
Fields
category:
String! -
The category associated with the metafield definition type.
name:
String! -
The name of the type for the metafield definition.
See the list of [supported types](https://shopify.dev/apps/metafields/types).
supportedValidations:
MetafieldDefinitionSupportedValidation! -
The supported validations for a metafield definition type.
supportsDefinitionMigrations:
Boolean! -
Whether metafields without a definition can be migrated to a definition of this type.
valueType:
MetafieldValueType! -
The value type for a metafield created with this definition type.
Connections
Related queries
metafieldDefinitionTypes
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](https://shopify.dev/apps/metafields/types).