Skip to content

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

Remove default optimization on get_node

Marcin Gębala6b2c87329fe6
diff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.py
index 79195fbf90..06fcecaede 100644
--- a/saleor/graphql/core/types/common.py
+++ b/saleor/graphql/core/types/common.py
@@ -50,14 +50,6 @@ class CountableDjangoObjectType(DjangoObjectType):
super().__init_subclass_with_meta__(
*args, connection=countable_conn, **kwargs)
- @classmethod
- def get_node(cls, info, id):
- # Custom `get_node` implementation to use gql_optimizer to fetch
- # single objects.
- qs = cls._meta.model.objects.filter(pk=id)
- qs = gql_optimizer.query(qs, info)
- return qs[0] if qs else None
-
class Error(graphene.ObjectType):
field = graphene.String(