Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Fix input definition
Mira Szewczyk8092aae72df9
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 6b2de2028b..95b927501c 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -4199,8 +4199,8 @@ type StockError {input StockInput {productVariant: ID!warehouse: ID!- quantity: ID- quantityAllocated: ID+ quantity: Int+ quantityAllocated: Int}type StockUpdate {diff --git a/saleor/graphql/stock/types.py b/saleor/graphql/stock/types.pyindex 150a988510..641fce2dd0 100644--- a/saleor/graphql/stock/types.py+++ b/saleor/graphql/stock/types.py@@ -11,8 +11,8 @@ class StockInput(graphene.InputObjectType):warehouse = graphene.ID(required=True, description="Warehouse in which stock is lockated.")- quantity = graphene.ID(description="Amount of items available for sell.")- quantity_allocated = graphene.ID()+ quantity = graphene.Int(description="Amount of items available for sell.")+ quantity_allocated = graphene.Int()class Stock(CountableDjangoObjectType):