Skip to content

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

Rename _resolve_nodes

IKarbowiak25641bd24500
diff --git a/saleor/graphql/utils.py b/saleor/graphql/utils.py
index 006c46bc84..8701b066aa 100644
--- a/saleor/graphql/utils.py
+++ b/saleor/graphql/utils.py
@@ -32,7 +32,7 @@ def _check_graphene_type(requested_graphene_type, received_type):
).format(str(requested_graphene_type))
-def _resolve_nodes(ids, graphene_type=None):
+def resolve_global_ids_to_primary_keys(ids, graphene_type=None):
pks = []
invalid_ids = []
used_type = graphene_type
@@ -76,7 +76,7 @@ def get_nodes(
If the `graphene_type` is of type str, the model keyword argument must be provided.
"""
- nodes_type, pks = _resolve_nodes(ids, graphene_type)
+ nodes_type, pks = resolve_global_ids_to_primary_keys(ids, graphene_type)
# If `graphene_type` was not provided, check if all resolved types are
# the same. This prevents from accidentally mismatching IDs of different