We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1ebcb23 commit 4a6b7f1Copy full SHA for 4a6b7f1
src/graphql/execution/execute.py
@@ -987,6 +987,8 @@ def collect_subfields(
987
subfields are not repeatedly calculated, which saves overhead when resolving
988
lists of values.
989
"""
990
+ # Use id(field_nodes) as key, since a list cannot be hashed and
991
+ # (after conversion to a tuple) hashing nodes would be too slow:
992
cache_key = return_type, id(field_nodes)
993
sub_field_nodes = self._subfields_cache.get(cache_key)
994
if sub_field_nodes is None:
0 commit comments