stack

Home > @infiniteobjects/shopify-data-manager > AdminTypes > MetafieldInput > key

AdminTypes.MetafieldInput.key property

The unique identifier for a metafield within its namespace.

Required when creating a metafield, but optional when updating. Used to help identify the metafield when updating, but can’t be updated itself.

Must be 3-64 characters long and can contain alphanumeric, hyphen, and underscore characters.

Signature:

key?: InputMaybe<Scalars['String']['input']>;