Skip to main content
Log inSign up
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?