Skip to main content

attributesByProductId

Retrieve all attributes associated with a specific product with filtering and pagination.

Returns comprehensive attribute data for the specified product, including typed values, descriptions, and metadata. Used for product detail pages, attribute-based filtering, and product customization interfaces.

The response includes all attributes assigned to the product with their complete configuration and localized content. Supports additional filtering through the input parameter to refine results based on specific criteria.

Perfect for building product detail interfaces, generating product specifications, or managing product-specific attributes in administrative systems.

Possible errors:

  • ATTRIBUTE_VALIDATION_ERROR: Search input parameters failed validation
attributesByProductId(
productId: Int!
input: AttributeSearchInput!
): AttributeResponse!

Arguments

attributesByProductId.productId ● Int! non-null scalar

Unique identifier of the product.

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

attributesByProductId.input ● AttributeSearchInput! non-null input

Additional search criteria for filtering product attributes.

Contains optional filtering options and pagination settings to refine the attributes returned for the specified product. Use this to apply additional filters beyond the product association.

Type

AttributeResponse object

Paginated response containing attribute search results.

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