Skip to content

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

Separate input for ProductCreate and ProductUpdate

oldPadavan79130a6e8d78
diff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.py
index 2c2de290ef..bae5a7dea4 100644
--- a/saleor/graphql/product/mutations/products.py
+++ b/saleor/graphql/product/mutations/products.py
@@ -216,7 +216,7 @@ class AttributeValueInput(InputObjectType):
required=True, description='Value of an attribute.')
-class ProductInput(graphene.InputObjectType):
+class ProductPropertiesInput(graphene.InputObjectType):
attributes = graphene.List(
AttributeValueInput,
description='List of attributes.')
@@ -295,7 +295,7 @@ class ProductUpdate(ProductCreate):
class Arguments:
id = graphene.ID(
required=True, description='ID of a product to update.')
- input = ProductInput(
+ input = ProductPropertiesInput(
required=True, description='Fields required to update a product.')
class Meta: