# ListProductAttributeValues

## Overview

ListProductAttributeValues retrieves all attribute value records for a given attribute. Used for enumerating available options during attribute assignment, uniqueness validation when creating new values, and providing input choices for variant generation.

## Business Rules

- Accepts `{ attributeId }` as the required input
- Returns all ProductAttributeValue records belonging to the specified attribute as an array
- Returns an empty array if the attribute has no values
- Results are ordered by creation timestamp (ascending) for consistent enumeration
- All returned records include full fields (id, attributeId, label, timestamps)

## Process Flow

```mermaid
flowchart TD
    A[Receive attributeId] --> B[SELECT from ProductAttributeValue where attributeId = input.attributeId]
    B --> C{Results found?}
    C -->|Yes| D[Return array of attribute value records]
    C -->|No| E[Return empty array]
```

## External Dependencies

- None

## Error Scenarios

- **ATTRIBUTE_NOT_FOUND**: Specified attribute ID does not exist

## Test Cases

- returns values when found
- returns empty array when no values
