Skip to content

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

Add support for filter descriptions and deprecations (#4919)

michizhou213008f3a388
diff --git a/saleor/graphql/core/types/filter_input.py b/saleor/graphql/core/types/filter_input.py
index b32f223e74..e340de8137 100644
--- a/saleor/graphql/core/types/filter_input.py
+++ b/saleor/graphql/core/types/filter_input.py
@@ -58,7 +58,7 @@ class FilterInputObjectType(InputObjectType):
field_type = convert_form_field(filter_field)
else:
field_type = convert_form_field(filter_field.field)
- field_type.description = filter_field.label
+ field_type.description = getattr(filter_field, "help_text", "")
kwargs = getattr(field_type, "kwargs", {})
field_type.kwargs = kwargs
args[name] = field_type