6 March 2023
Product catalogGraphQL
We renamed the types of Product Variant Selection from Inclusion to IncludeOnly and from Exclusion to IncludeAllExcept.
Based on our feedback, the new names describe the semantics of these types better and make their purpose clearer.
The previous types have now been deprecated and will be migrated to the new types automatically on 30 June 2023 without any disruption of services.
Changes:
- [API] Added 
includeOnlyandincludeAllExceptvalues to thetypefield of Product Variant Selection. - [API] Deprecated 
inclusionandexclusionvalues on thetypefield of Product Variant Selection. - [GraphQL API] Changed the 
ProductVariantSelectionDrafttype:- Added input field 
includeOnlyandincludeAllExcepttoProductVariantSelectionDrafttype. - Deprecated input field 
inclusionandexclusiononProductVariantSelectionDrafttype. 
 - Added input field 
 - [GraphQL API] Added the following types to the GraphQL schema: 
ProductVariantSelectionIncludeOnly,ProductVariantSelectionIncludeAllExcept. - [GraphQL API] Deprecated the following types on the GraphQL schema: 
ProductVariantSelectionExclusion,ProductVariantSelectionInclusion. 
The following changes were introduced in terms of GraphQL SDL:
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#beta-features"
type ProductVariantSelectionIncludeAllExcept implements ProductVariantSelection {
  type: String!
  skus: [String!]!
}
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#beta-features"
type ProductVariantSelectionIncludeOnly implements ProductVariantSelection {
  type: String!
  skus: [String!]!
}
The preceding changes in the GraphQL SDL replace the following part of the schema:
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#beta-features"
type ProductVariantSelectionExclusion implements ProductVariantSelection {
  type: String!
  skus: [String!]!
}
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#beta-features"
type ProductVariantSelectionInclusion implements ProductVariantSelection {
  type: String!
  skus: [String!]!
}