Skip to main content

attributeResultByProductId

Retrieve comprehensive attribute results for a specific product with optional default values.

Returns attribute data for the specified product, including both assigned attribute values and optionally default values from attribute descriptions. The response combines actual attribute values with default values when requested, providing a complete view of all available attributes for the product.

When includeDefaultValues is true, the result includes default values from attribute descriptions for attributes that haven't been explicitly assigned to the product. This is perfect for displaying complete product specifications or generating forms with pre-filled default values.

Possible errors:

  • ATTRIBUTE_VALIDATION_ERROR: Search input parameters failed validation
attributeResultByProductId(
productId: Int!
input: AttributeResultSearchInput!
): AttributeResultResponse!

Arguments

attributeResultByProductId.productId ● Int! non-null scalar

Unique identifier of the product to retrieve attribute results for.

Must be a positive integer representing a valid product ID in the system. The product must exist and be accessible within the current context.

attributeResultByProductId.input ● AttributeResultSearchInput! non-null input

Search criteria and options for filtering attribute results.

Contains filtering options, pagination settings, and the includeDefaultValues flag to control whether default values from attribute descriptions should be included in the results.

Type

AttributeResultResponse object

Paginated response containing comprehensive attribute result data.

Provides a structured response for attribute result queries including the matching attribute results with complete attribute information, pagination metadata, and total count information. Used for attribute result search and listing operations with comprehensive pagination support.

Each result combines attribute descriptions, values, and entity associations to provide complete attribute information for display and business logic operations.