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 MetafieldDefinitionValidation

MetafieldDefinitionValidation

object

A configured metafield definition validation.

For example, for a metafield definition of number_integer type, you can set a validation with the name max and a value of 15. This validation will ensure that the value of the metafield is a number less than or equal to 15.

Refer to the list of supported validations.

String!non-null

The validation name.

String!non-null

The name for the metafield type of this validation.

The validation value.


Was this section helpful?