Skip to content

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

Remove autogenerated field from schema

Mira Szewczykd3f7551a0050
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 1886ebeaa0..290a7667ae 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -4613,7 +4613,6 @@ type Warehouse implements Node {
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection!
address: Address!
email: String!
- stockSet(before: String, after: String, first: Int, last: Int): StockCountableConnection!
}
input WarehouseAddressInput {
diff --git a/saleor/graphql/warehouse/types.py b/saleor/graphql/warehouse/types.py
index d43813a380..7e8313e1f3 100644
--- a/saleor/graphql/warehouse/types.py
+++ b/saleor/graphql/warehouse/types.py
@@ -42,3 +42,11 @@ class Warehouse(CountableDjangoObjectType):
description = "Represents warehouse."
model = models.Warehouse
interfaces = [graphene.relay.Node]
+ only_fields = [
+ "id",
+ "name",
+ "company_name",
+ "shipping_zones",
+ "address",
+ "email",
+ ]