Skip to content

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

Allow null values for plugin configuration

Maciej Korycinski613900205cc2
diff --git a/saleor/graphql/extensions/mutations.py b/saleor/graphql/extensions/mutations.py
index 05d5ef5459..1f299cef90 100644
--- a/saleor/graphql/extensions/mutations.py
+++ b/saleor/graphql/extensions/mutations.py
@@ -9,7 +9,7 @@ from .types import Plugin
class ConfigurationItemInput(graphene.InputObjectType):
name = graphene.String(required=True, description="Name of the field to update.")
value = graphene.String(
- required=True, description="Value of the given field to update."
+ required=False, description="Value of the given field to update."
)
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 0cf0146afd..4745f97bca 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -968,7 +968,7 @@ type ConfigurationItem {
input ConfigurationItemInput {
name: String!
- value: String!
+ value: String
}
enum ConfigurationTypeFieldEnum {