--- title: MetafieldDefinitionType - GraphQL Admin description: A metafield definition type provides basic foundation and validation for a metafield. api_version: 2025-10 api_name: admin type: object api_type: graphql source_url: html: https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinitionType md: https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinitionType.md --- # Metafield​Definition​Type object A metafield definition type provides basic foundation and validation for a metafield. ## Fields * category [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The category associated with the metafield definition type. * name [String!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/String) non-null The name of the type for the metafield definition. See the list of [supported types](https://shopify.dev/apps/metafields/types). * supported​Validations [\[Metafield​Definition​Supported​Validation!\]!](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinitionSupportedValidation) non-null The supported validations for a metafield definition type. * supports​Definition​Migrations [Boolean!](https://shopify.dev/docs/api/admin-graphql/latest/scalars/Boolean) non-null Whether metafields without a definition can be migrated to a definition of this type. * value​Type [Metafield​Value​Type!](https://shopify.dev/docs/api/admin-graphql/latest/enums/MetafieldValueType) non-nullDeprecated *** ## Map ### Fields with this object * {}[MetafieldDefinition.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetafieldDefinition#field-MetafieldDefinition.fields.type) * {}[MetaobjectFieldDefinition.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/MetaobjectFieldDefinition#field-MetaobjectFieldDefinition.fields.type) * {}[StandardMetafieldDefinitionTemplate.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/StandardMetafieldDefinitionTemplate#field-StandardMetafieldDefinitionTemplate.fields.type) * {}[StandardMetaobjectDefinitionFieldTemplate.type](https://shopify.dev/docs/api/admin-graphql/latest/objects/StandardMetaobjectDefinitionFieldTemplate#field-StandardMetaobjectDefinitionFieldTemplate.fields.type) *** ## Queries * [metafield​Definition​Types](https://shopify.dev/docs/api/admin-graphql/latest/queries/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](https://shopify.dev/apps/metafields/types). *** ## \MetafieldDefinitionType Queries ### Queried by * \[metafield​Definition​Types](https://shopify.dev/docs/api/admin-graphql/latest/queries/metafieldDefinitionTypes)