Skip to content

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

Remove old field from scheme

Mira Szewczyk562787219c62
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 64687f964c..f62271eff0 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3498,7 +3498,7 @@ type Query {
translations(kind: TranslatableKinds!, before: String, after: String, first: Int, last: Int): TranslatableItemConnection
translation(id: ID!, kind: TranslatableKinds!): TranslatableItem
stock(id: ID!): Stock
- stocks(filter: StockFilterInput, query: String, before: String, after: String, first: Int, last: Int): StockCountableConnection
+ stocks(filter: StockFilterInput, before: String, after: String, first: Int, last: Int): StockCountableConnection
shop: Shop
shippingZone(id: ID!): ShippingZone
shippingZones(before: String, after: String, first: Int, last: Int): ShippingZoneCountableConnection
diff --git a/saleor/graphql/warehouse/schema.py b/saleor/graphql/warehouse/schema.py
index 0a85d7469e..b3f7537025 100644
--- a/saleor/graphql/warehouse/schema.py
+++ b/saleor/graphql/warehouse/schema.py
@@ -55,10 +55,7 @@ class StockQueries(graphene.ObjectType):
id=graphene.ID(required=True, description="ID of an warehouse"),
)
stocks = FilterInputConnectionField(
- Stock,
- description="List of stocks.",
- filter=StockFilterInput(),
- query=graphene.String(),
+ Stock, description="List of stocks.", filter=StockFilterInput(),
)
@permission_required(StockPermissions.MANAGE_STOCKS)