Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Add deprecation to currencies field on shop query (#6306)

Filip Owczarek31dcc81853df
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index f738d9debe..582f3b8f35 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -4759,7 +4759,7 @@ type Shop {
geolocalization: Geolocalization
authorizationKeys: [AuthorizationKey]!
countries(languageCode: LanguageCodeEnum): [CountryDisplay!]!
- currencies: [String]!
+ currencies: [String]! @deprecated(reason: "This field will be removed in Saleor 3.0")
defaultCurrency: String!
defaultCountry: CountryDisplay
defaultMailSenderName: String
diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.py
index b47070ec03..e30cce7290 100644
--- a/saleor/graphql/shop/types.py
+++ b/saleor/graphql/shop/types.py
@@ -97,7 +97,10 @@ class Shop(graphene.ObjectType):
required=True,
)
currencies = graphene.List(
- graphene.String, description="List of available currencies.", required=True
+ graphene.String,
+ description="List of available currencies.",
+ required=True,
+ deprecation_reason="This field will be removed in Saleor 3.0",
)
default_currency = graphene.String(
description="Shop's default currency.", required=True