AttributeColorValue
Color-based attribute value storing hexadecimal color codes for visual attributes.
Stores color information as validated hexadecimal color codes. Perfect for product colors, theme colors, design attributes, or any visual property that requires precise color specification.
type AttributeColorValue implements AttributeValue {
id: String!
type: AttributeType!
colorValue: String
}
Fields
AttributeColorValue.id ● String! non-null scalar
Unique identifier for this attribute value instance.
Auto-generated UUID that serves as the primary key for this specific attribute value. Used to reference and manage individual attribute value instances across the system.
AttributeColorValue.type ● AttributeType! non-null enum
Type identifier for color-based attribute values.
Always set to color for this value type. Used for type discrimination and validation in polymorphic attribute value handling.
AttributeColorValue.colorValue ● String scalar
Hexadecimal color code representing the color value.
Stores color information as a validated hex string in the format #RRGGBB or #RGB. Perfect for product colors, theme settings, or any visual attribute requiring precise color specification.
Interfaces
AttributeValue interface
Base interface for all attribute value types with polymorphic type resolution.
Provides the foundation for typed attribute values across different data types including text, enumeration, color, decimal, datetime, and integer values. Each concrete implementation handles specific data type requirements, validation, and formatting.
The interface enables polymorphic handling of attribute values while maintaining type safety and proper validation for each specific attribute type. Used throughout the system for storing and retrieving typed attribute data.