Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/graphql/execution/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ def __init__(
self.middleware_manager = middleware_manager
self.errors = errors
self._subfields_cache: Dict[
Tuple[GraphQLObjectType, Tuple[FieldNode, ...]], Dict[str, List[FieldNode]]
Tuple[GraphQLObjectType, int], Dict[str, List[FieldNode]]
] = {}

@classmethod
Expand Down Expand Up @@ -998,7 +998,7 @@ def collect_subfields(
subfields are not repeatedly calculated, which saves overhead when resolving
lists of values.
"""
cache_key = return_type, tuple(field_nodes)
cache_key = return_type, id(field_nodes)
sub_field_nodes = self._subfields_cache.get(cache_key)
if sub_field_nodes is None:
sub_field_nodes = {}
Expand Down