Skip to content

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

Set OrderFulfillStockInput fields as required

IKarbowiak9701eb8d7ec2
diff --git a/saleor/graphql/order/mutations/fulfillments.py b/saleor/graphql/order/mutations/fulfillments.py
index 3da5113311..edd1dbc337 100644
--- a/saleor/graphql/order/mutations/fulfillments.py
+++ b/saleor/graphql/order/mutations/fulfillments.py
@@ -25,10 +25,12 @@ from ..types import OrderLine
class OrderFulfillStockInput(graphene.InputObjectType):
quantity = graphene.Int(
- description="The number of line items to be fulfilled from given warehouse."
+ description="The number of line items to be fulfilled from given warehouse.",
+ required=True,
)
warehouse = graphene.ID(
- description="ID of the warehouse from which the item will be fulfilled."
+ description="ID of the warehouse from which the item will be fulfilled.",
+ required=True,
)
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 5f281f7220..767bcf4424 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3117,8 +3117,8 @@ input OrderFulfillLineInput {
}
input OrderFulfillStockInput {
- quantity: Int
- warehouse: ID
+ quantity: Int!
+ warehouse: ID!
}
type OrderLine implements Node {