Anchor to MetafieldDefinitionValidationInputMetafield
input_objectMetafield Definition Validation Input
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.
Was this section helpful?
Anchor to Input objects using this inputInput objects using this input
- •INPUT OBJECT
The input fields required to create a metafield definition.
- •INPUT OBJECT
The input fields required to update a metafield definition.
- Anchor to MetaobjectFieldDefinitionCreateInput.validationsMetaobject•INPUT OBJECT
Field Definition Create Input. validations The input fields for creating a metaobject field definition.
- Anchor to MetaobjectFieldDefinitionUpdateInput.validationsMetaobject•INPUT OBJECT
Field Definition Update Input. validations The input fields for updating a metaobject field definition.
Was this section helpful?