AttributeValueInput
Input for defining typed attribute values with comprehensive data type support.
Provides a flexible structure for specifying attribute values based on the attribute description's type definition. Only the field corresponding to the attribute's type should be populated, while others should remain null or undefined.
Supports all attribute types including:
- TEXT: Localized text values with multi-language support
- ENUM: Predefined option selection from valuesets
- INT: Integer numeric values with range validation
- DECIMAL: Decimal numeric values with precision control
- DATETIME: Date and time values with ISO format
- COLOR: Hexadecimal color codes with validation
input AttributeValueInput {
textValues: [LocalizedStringArrayInput!]
enumValues: [String!]
intValue: Int
decimalValue: Float
dateTimeValue: String
colorValue: String
}
Fields
AttributeValueInput.textValues
● [LocalizedStringArrayInput!]
list input
Localized text values for TEXT type attributes with multi-language support.
Provide text content in multiple languages with support for multiple values per language. Use this field when the attribute type is TEXT. Supports rich text content, descriptions, and any textual data that needs localization. The language codes should follow standard ISO language codes.
AttributeValueInput.enumValues
● [String!]
list scalar
Selected values from predefined options for ENUM type attributes.
Specify one or more values from the attribute description's associated valueset. Use this field when the attribute type is ENUM. Perfect for categories, sizes, colors, or any predefined list of options. The values must exactly match the options defined in the attribute description's valueset.
AttributeValueInput.intValue
● Int
scalar
Integer value for INT type attributes.
Use this field when the attribute type is INT. Stores whole numbers without decimal places, perfect for quantities, counts, ratings, sequence numbers, or numeric identifiers.
AttributeValueInput.decimalValue
● Float
scalar
Decimal value for DECIMAL type attributes.
Use this field when the attribute type is DECIMAL. Stores numbers with decimal precision, perfect for measurements, prices, weights, percentages, ratios, or any numeric value requiring fractional components.
AttributeValueInput.dateTimeValue
● String
scalar
Date and time value for DATETIME type attributes with ISO 8601 format.
Use this field when the attribute type is DATETIME. Perfect for timestamps, expiration dates, event scheduling, or any time-sensitive attribute data. The format ensures consistent date handling across different systems.
AttributeValueInput.colorValue
● String
scalar
Hexadecimal color value for COLOR type attributes.
Used when the attribute type is COLOR. Must be a valid hexadecimal color code including the # prefix. Perfect for product colors, theme colors, brand colors, or any visual styling attributes.
Member Of
AttributeCreateInput
input ● AttributeDescriptionCreateInput
input ● AttributeDescriptionUpdateInput
input ● AttributeUpdateInput
input