Anchor to MetafieldDefinitionValidationMetafield
MetafieldDefinitionValidation
object
A configured metafield definition validation.
For example, for a metafield definition of 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.
Anchor to FieldsFields
- Anchor to namename•String!non-null
The validation name.
- Anchor to typetype•String!non-null
The name for the metafield type of this validation.
- Anchor to valuevalue•
The validation value.
Was this section helpful?