Skip to content

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

Set required to False in ExportInfoInput for ExportProducts mutation

IKarbowiakd5213ec8f06e
diff --git a/saleor/graphql/csv/mutations.py b/saleor/graphql/csv/mutations.py
index a75b146f44..f2d235c460 100644
--- a/saleor/graphql/csv/mutations.py
+++ b/saleor/graphql/csv/mutations.py
@@ -47,7 +47,7 @@ class ExportProductsInput(graphene.InputObjectType):
)
export_info = ExportInfoInput(
description="Input with info about fields which should be exported.",
- required=True,
+ required=False,
)
file_type = FileTypeEnum(description="Type of exported file.", required=True)
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index df9719f574..bdef99a43f 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1838,7 +1838,7 @@ input ExportProductsInput {
scope: ExportScope!
filter: ProductFilterInput
ids: [ID!]
- exportInfo: ExportInfoInput!
+ exportInfo: ExportInfoInput
fileType: FileTypesEnum!
}