10 November 2022
Project configurationMessages/SubscriptionsGraphQL
We have released countries in Stores in public beta. You can now define
countries on Stores and filter prices by country in Product Projections and Cart/Order/Shopping List Line Items.Changes:
- [API] Added type StoreCountry to Stores.
- [API] Added
countriesfield to Store and StoreDraft. - [API] Added Add Country, Remove Country, and Set Countries update actions to Stores.
- [API] Added optional
countriesfield to StoreCreated Message. - [API] Added StoreCountriesChanged Message.
- [API] Added the error code CountryNotConfiguredInStore.
- [GraphQL API] Added the following types to the GraphQL schema:
AddStoreCountry,RemoveStoreCountry,SetStoreCountries,StoreCountriesChanged,StoreCountry,StoreCountryInput. - [GraphQL API] Changed the
StoreUpdateActiontype:- Input field
addCountrywas added toStoreUpdateActiontype - Input field
setCountrieswas added toStoreUpdateActiontype - Input field
removeCountrywas added toStoreUpdateActiontype
- Input field
- [GraphQL API] Changed the
CreateStoretype:- Input field
countrieswas added toCreateStoretype
- Input field
- [GraphQL API] Changed the
StoreCreatedtype:- Added the
countriesfield to theStoreCreatedtype.
- Added the
- [GraphQL API] Changed the
Storetype:- Added the
countriesfield to theStoretype.
- Added the
The following changes were introduced in terms of GraphQL SDL:
extend type StoreCreated {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
countries: [StoreCountry!]
}
extend type Store {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
countries: [StoreCountry!]
}
extend input StoreUpdateAction {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
addCountry: AddStoreCountry
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
removeCountry: RemoveStoreCountry
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setCountries: SetStoreCountries
}
extend input CreateStore {
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
countries: [StoreCountryInput!]
}
input AddStoreCountry {
country: StoreCountryInput!
}
input RemoveStoreCountry {
country: StoreCountryInput!
}
input SetStoreCountries {
countries: [StoreCountryInput!]
}
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type StoreCountriesChanged implements MessagePayload {
addedCountries: [StoreCountry!]
removedCountries: [StoreCountry!]
type: String!
}
type StoreCountry {
code: Country!
}
input StoreCountryInput {
code: Country!
}