Anchor to MetaobjectFieldDefinitionCreateInputMetaobject
input_objectMetaobject Field Definition Create Input
The input fields for creating a metaobject field definition.
Anchor to FieldsFields
- Anchor to descriptiondescription•String
An administrative description of the field.
- •String!non-null
The key of the new field definition. This can't be changed.
Must be 2-64 characters long and only contain alphanumeric, hyphen, and underscore characters.
- Anchor to namename•String
A human-readable name for the field. This can be changed at any time.
- Anchor to requiredrequired•BooleanDefault:false
Whether metaobjects require a saved value for the field.
- Anchor to typetype•String!non-null
The metafield type applied to values of the field.
- Anchor to validationsvalidations•[Metafield
Definition Validation Input!] Custom validations that apply to values assigned to the field.
- Anchor to visibleToStorefrontApivisible•Boolean
To Storefront Api Whether the field is visible to the storefront API. Defaults to the visibility of the parent metaobject definition.
Was this section helpful?
Anchor to Input objects using this inputInput objects using this input
- Anchor to MetaobjectDefinitionCreateInput.fieldDefinitionsMetaobject•INPUT OBJECT
Definition Create Input.field Definitions A set of field definitions to create on this metaobject definition.
- Anchor to MetaobjectFieldDefinitionOperationInput.createMetaobject•INPUT OBJECT
Field Definition Operation Input.create The input fields for creating a metaobject field definition.
Was this section helpful?