All Release Notes
Changed names of Product Variant Selection types
6 March 2023
Announcement
Product CatalogGraphQLDeprecation
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
includeOnly
andincludeAllExcept
values to thetype
field of Product Variant Selection. - [API] Deprecated
inclusion
andexclusion
values on thetype
field of Product Variant Selection. - [GraphQL API] Changed the
ProductVariantSelectionDraft
type:- Added input field
includeOnly
andincludeAllExcept
toProductVariantSelectionDraft
type. - Deprecated input field
inclusion
andexclusion
onProductVariantSelectionDraft
type.
- 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!]!}