Skip to main content

AttributeDecimalValue

Decimal-based attribute value for floating-point numeric data with precision support.

Stores floating-point decimal values for measurements, prices, weights, percentages, or any numeric data requiring fractional precision. Supports a wide range of decimal values with appropriate precision handling.

type AttributeDecimalValue implements AttributeValue {
id: String!
type: AttributeType!
decimalValue: Float!
}

Fields

AttributeDecimalValue.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.

AttributeDecimalValue.type ● AttributeType! non-null enum

Type identifier for decimal-based attribute values.

Always set to decimal for this value type. Used for type discrimination and validation in polymorphic attribute value handling.

AttributeDecimalValue.decimalValue ● Float! non-null scalar

Decimal value with floating-point precision for fractional numeric data.

Stores numbers with decimal precision, perfect for measurements, prices, weights, percentages, ratios, or any numeric value requiring fractional components.

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.