Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
deprecate homepage collection (#6256)
Damian Wysocki53c192a27e2b
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 775b49557f..79b868f4a0 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -4757,7 +4757,7 @@ type Shop {defaultMailSenderAddress: Stringdescription: Stringdomain: Domain!- homepageCollection: Collection+ homepageCollection: Collection @deprecated(reason: "Use the `collection` query with the `slug` parameter. This field will be removed in Saleor 3.0")languages: [LanguageDisplay]!name: String!navigation: Navigationdiff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex e8c6ddf199..8a15198c3d 100644--- a/saleor/graphql/shop/types.py+++ b/saleor/graphql/shop/types.py@@ -114,7 +114,12 @@ class Shop(graphene.ObjectType):description = graphene.String(description="Shop's description.")domain = graphene.Field(Domain, required=True, description="Shop's domain data.")homepage_collection = graphene.Field(- Collection, description="Collection displayed on homepage."+ Collection,+ description="Collection displayed on homepage.",+ deprecation_reason=(+ "Use the `collection` query with the `slug` parameter. "+ "This field will be removed in Saleor 3.0"+ ),)languages = graphene.List(LanguageDisplay,