Skip to content

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

Fix attribute resolver

Patryk Zawadzkidd475195ab92
diff --git a/saleor/graphql/product/types.py b/saleor/graphql/product/types.py
index 00c00820a5..c2853951fa 100644
--- a/saleor/graphql/product/types.py
+++ b/saleor/graphql/product/types.py
@@ -132,6 +132,9 @@ class Product(CountableDjangoObjectType):
self, context.discounts, context.taxes, context.currency)
return ProductAvailability(**availability._asdict())
+ def resolve_attributes(self, info):
+ return resolve_attribute_list(self.attributes)
+
def resolve_product_type(self, info):
return self.product_type