Skip to content

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

Improve product filter error msg (#18010)

Maciej Korycinski43aa6350caa2
diff --git a/saleor/graphql/product/filters/product_attributes.py b/saleor/graphql/product/filters/product_attributes.py
index fe024250ed..8854f7e028 100644
--- a/saleor/graphql/product/filters/product_attributes.py
+++ b/saleor/graphql/product/filters/product_attributes.py
@@ -337,8 +337,8 @@ def validate_attribute_input(attributes: list[dict], db_connection_name: str):
mixed_filter_usage = len(set(used_deprecated_filter)) > 1
if mixed_filter_usage:
raise GraphQLError(
- "The provided `attributes` input contains a mix of deprecated "
- "and new fields. Please use either the new `value` field "
+ "The provided `attributes` input contains a mix of deprecated fields"
+ "and `value`. Please use either the `AttributeInput.value` field "
"exclusively or only the deprecated fields."
)