Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Return distinct attributes from API
Marcin Gębala94413817026a
diff --git a/saleor/graphql/api.py b/saleor/graphql/api.pyindex 35e4497fc8..32f23655a3 100644--- a/saleor/graphql/api.py+++ b/saleor/graphql/api.py@@ -239,7 +239,7 @@ class Viewer(graphene.ObjectType):queryset = queryset.filter(Q(products_class__in=product_classes) |Q(product_variants_class__in=product_classes))- return queryset+ return queryset.distinct()class Query(graphene.ObjectType):