Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use category_id variable
Damian Wd7599162c34c
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 077275b49a..985cbf0448 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -462,7 +462,7 @@ class Product(CountableDjangoObjectType):def resolve_category(root: models.Product, info):category_id = root.category_idif category_id:- return CategoryByIdLoader(info.context).load(root.category_id)+ return CategoryByIdLoader(info.context).load(category_id)return None@staticmethod