Skip to content

Commit b074645

Browse files
committed
Clear new DocumentContext fields after usage.
1 parent 07fdef8 commit b074645

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/HotChocolate/Core/src/Validation/DocumentValidatorContext.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,9 @@ public void Clear()
138138
_nonNullString = null;
139139
VariableValues = null;
140140
ContextData = default!;
141+
ProcessedFieldPairs.Clear();
142+
NextFieldPairs.Clear();
143+
CurrentFieldPairs.Clear();
141144
Path.Clear();
142145
SelectionSets.Clear();
143146
FieldSets.Clear();

0 commit comments

Comments
 (0)