AttributeCreateInput
InputInput for creating a new product attribute.
#
Fields
- [KeyValuePairOfStringAndStringInput!]
metadata Optional metadata key/value pairs.
- [MetafieldInput!]
metafields The metafield values to assign to the attribute during creation.
- String!
name The display name of the attribute.
- ProductAttributeType!
type The type of the attribute (e.g. Text, Swatch).
Possible enum valuesSWATCHPresents the attribute value as a visual swatch, such as a color or pattern.
TEXTPresents the attribute value as text.