18 March 2022
GraphQL
Reference Expansion for Custom Fields of CustomFieldReferenceType (as well as for the CustomFieldSetType of it) is now supported in the GraphQL API.
We appreciate your feedback on this new in public beta feature; for an example query, please refer to the respective section in the GraphQL API documentation.
We appreciate your feedback on this new in public beta feature; for an example query, please refer to the respective section in the GraphQL API documentation.
Changes:
- [GraphQL API] Changed the 
RawCustomFieldtype:- Added the 
referencedResourceSetfield to theRawCustomFieldtype. - Added the 
referencedResourcefield to theRawCustomFieldtype. 
 - Added the 
 - [GraphQL API] Changed the 
Carttype:Cartobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
CartDiscounttype:CartDiscountobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Categorytype:Categoryobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Channeltype:Channelobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Customertype:Customerobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
CustomerGrouptype:CustomerGroupobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
CustomObjecttype:CustomObjectobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
DiscountCodetype:DiscountCodeobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Extensiontype:Extensionobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
InventoryEntrytype:InventoryEntryobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Messagetype:Messageobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Ordertype:Orderobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Producttype:Productobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
ProductDiscounttype:ProductDiscountobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
ProductTypeDefinitiontype:ProductTypeDefinitionobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Reviewtype:Reviewobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
ShippingMethodtype:ShippingMethodobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
ShoppingListtype:ShoppingListobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Statetype:Stateobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Storetype:Storeobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
TaxCategorytype:TaxCategoryobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
TypeDefinitiontype:TypeDefinitionobject type now implementsReferenceExpandableinterface
 - [GraphQL API] Changed the 
Zonetype:Zoneobject type now implementsReferenceExpandableinterface
 
The following changes were introduced in terms of GraphQL SDL:
extend type RawCustomField {
  "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!]!
}
interface ReferenceExpandable {
  id: String!
}