Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
No longer attempting to optimize a product node if we don't have to Prevention following this commit https://github.com/tfoxy/graphene-django-optimizer/pull/18/commits/14137730284b9e4a3fa005aa6c1073c650439eaf
NyanKiyoshib67553878078
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex be2b2ee08e..7427c8c95f 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -436,6 +436,8 @@ class Product(CountableDjangoObjectType):@classmethoddef get_node(cls, info, pk):if info.context:+ if not cls.can_optimize_resolver(info):+ return super().get_node(info, pk)qs = cls._meta.model.objects.visible_to_user(info.context.user)return cls.get_optimized_node(info, qs, pk)return None