MetafieldDefinitionValidationInput
The name and value for a metafield definition validation.
For example, for a metafield definition of type, you can set a validation with the name
min
and a value of 10
.
This validation will ensure that the value of the metafield is at least 10 characters.
Refer to the list of supported validations.
Anchor to FieldsFields
- Anchor to namename•String!non-null
The name for the metafield definition validation.
- Anchor to valuevalue•String!non-null
The value for the metafield definition validation.
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
A list of validation options for the metafields that belong to the metafield definition. For example, for a metafield definition with the type
date
, you can set a minimum date validation so that each of the metafields that belong to it can only store dates after the specified minimum.- •INPUT OBJECT
A list of validation options for the metafields that belong to the metafield definition. For example, for a metafield definition with the type
date
, you can set a minimum date validation so that each of the metafields that belong to it can only store dates after the specified minimum.- Anchor to MetaobjectFieldDefinitionCreateInput.validationsMetaobject•
Field Definition Create Input.validations INPUT OBJECT Custom validations that apply to values assigned to the field.
- Anchor to MetaobjectFieldDefinitionUpdateInput.validationsMetaobject•
Field Definition Update Input.validations INPUT OBJECT Custom validations that apply to values assigned to the field.