All Release Notes

Added Reference Expansion for Product Attributes in the GraphQL API

4 April 2022
Enhancement
Product CatalogGraphQL

Reference Expansion for Attributes of Products is now supported in the GraphQL API.

We appreciate your feedback on this new in public beta feature. An example query can be found in our GraphQL API documentation.

Changes:

  • [GraphQL API] Changed the RawProductAttribute type:
    • Added the referencedResourceSet field to the RawProductAttribute type.
    • Added the referencedResource field to the RawProductAttribute type.

The following changes were introduced in terms of GraphQL SDL:

extend type RawProductAttribute {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
referencedResource: ReferenceExpandable
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
referencedResourceSet: [ReferenceExpandable!]!
}