Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add default value for count of created objects
fowczarekab2a32489924
diff --git a/saleor/graphql/product/bulk_mutations/products.py b/saleor/graphql/product/bulk_mutations/products.pyindex 592e3f9c64..f22f2e0385 100644--- a/saleor/graphql/product/bulk_mutations/products.py+++ b/saleor/graphql/product/bulk_mutations/products.py@@ -93,7 +93,11 @@ class ProductVariantBulkCreateInput(ProductVariantInput):class ProductVariantBulkCreate(ModelMutation):- count = graphene.Int(description="Returns how many objects were affected.")+ count = graphene.Int(+ required=True,+ default_value=0,+ description="Returns how many objects were affected.",+ )class Arguments:input = graphene.List(