Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Change shop countries schema
Damian W167a689c1951
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 19e9aec62c..4b3d8eb315 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -4356,7 +4356,7 @@ type Shop {availablePaymentGateways: [PaymentGateway!]!geolocalization: GeolocalizationauthorizationKeys: [AuthorizationKey]!- countries(languageCode: LanguageCodeEnum): [CountryDisplay]!+ countries(languageCode: LanguageCodeEnum): [CountryDisplay!]!currencies: [String]!defaultCurrency: String!defaultCountry: CountryDisplaydiff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex cf53665621..5e6161a10a 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -81,7 +81,7 @@ class Shop(graphene.ObjectType):required=True,)countries = graphene.List(- CountryDisplay,+ graphene.NonNull(CountryDisplay),language_code=graphene.Argument(LanguageCodeEnum,description="A language code to return the translation for.",@@ -183,7 +183,6 @@ class Shop(graphene.ObjectType):code=country[0], country=country[1], vat=taxes.get(country[0]))for country in countries- if country is not None]@staticmethod