AttributeEnumValue
Enumeration-based attribute value for predefined option selection from valuesets.
Stores one or more selected values from a predefined list of options defined in the associated valueset. Perfect for categories, sizes, colors, statuses, or any controlled vocabulary where users select from predefined choices.
type AttributeEnumValue implements AttributeValue {
id: String!
type: AttributeType!
enumValues: [String!]!
}
Fields
AttributeEnumValue.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.
AttributeEnumValue.type
● AttributeType!
non-null enum
Type identifier for enumeration-based attribute values.
Always set to enum for this value type. Used for type discrimination and validation in polymorphic attribute value handling.
AttributeEnumValue.enumValues
● [String!]!
non-null scalar
Selected values from the predefined valueset options.
Contains one or more values selected from the attribute description's associated valueset. Each value must be a valid option from the predefined list, ensuring data consistency and controlled vocabularies. Supports both single and multiple selection scenarios depending on the attribute description's configuration.
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.