Skip to content

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

Update shipping_zones on Channel type definition

IKarbowiakcaffa8833d88
diff --git a/saleor/graphql/channel/types.py b/saleor/graphql/channel/types.py
index 260a3cd713..bb24d1cb65 100644
--- a/saleor/graphql/channel/types.py
+++ b/saleor/graphql/channel/types.py
@@ -65,8 +65,9 @@ class Channel(CountableDjangoObjectType):
required=True, description="Whether a channel has associated orders."
)
shipping_zones = graphene.List(
- "saleor.graphql.shipping.types.ShippingZone",
+ graphene.NonNull("saleor.graphql.shipping.types.ShippingZone"),
description="List of channel shipping zones.",
+ required=True,
)
class Meta:
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index bc30bab0ab..a4b4355855 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -781,7 +781,7 @@ type Channel implements Node {
slug: String!
currencyCode: String!
hasOrders: Boolean!
- shippingZones: [ShippingZone]
+ shippingZones: [ShippingZone!]!
}
type ChannelActivate {