We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent facce87 commit 965502cCopy full SHA for 965502c
src/graphql/execution/execute.py
@@ -1941,11 +1941,13 @@ def add_new_deferred_fragments(
1941
with the calculated parent has been added; the record will be released only
1942
after the parent has completed.
1943
"""
1944
- new_defer_map: RefMap[DeferUsage, DeferredFragmentRecord]
1945
if not new_defer_usages:
1946
# Given no DeferUsages, return the existing map, creating one if necessary.
1947
return RefMap() if defer_map is None else defer_map
+
1948
+ # Create a copy of the old map.
1949
new_defer_map = RefMap() if defer_map is None else RefMap(defer_map.items())
1950
1951
# For each new DeferUsage object:
1952
for defer_usage in new_defer_usages:
1953
ancestors = defer_usage.ancestors
0 commit comments