Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetaobjectFieldDefinitionCreateInput
The input fields for creating a metaobject field definition.
Signature:
export interface MetaobjectFieldDefinitionCreateInput
Property | Modifiers | Type | Description |
---|---|---|---|
description? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) An administrative description of the field. | |
key | Scalars[‘String’][‘input’] | <p>The key of the new field definition. This can’t be changed.</p><p>Must be 3-64 characters long and only contain alphanumeric, hyphen, and underscore characters.</p> | |
name? | InputMaybe<Scalars[‘String’][‘input’]> | (Optional) A human-readable name for the field. This can be changed at any time. | |
required? | InputMaybe<Scalars[‘Boolean’][‘input’]> | (Optional) Whether metaobjects require a saved value for the field. | |
type | Scalars[‘String’][‘input’] | The metafield type applied to values of the field. | |
validations? | InputMaybe<Array<MetafieldDefinitionValidationInput>> | (Optional) Custom validations that apply to values assigned to the field. |