Skip to content

Commit 93dcbff

Browse files
committed
chore: update comment
1 parent 2c0d9b4 commit 93dcbff

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

v2/pkg/astnormalization/variables_mapping.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ func (v *variablesMappingVisitor) LeaveDocument(operation, definition *ast.Docum
8686
v.operation.VariableValues[v.operation.VariableDefinitions[variableItem.variableDefinitionRef].VariableValue.Ref].Name = newVariableName
8787
}
8888

89-
// it is important to sort the variable definitions of operation by name to ensure that the order is deterministic
89+
// After remapping the variables we will get the sequential variable names, which could be stable sorted
90+
// And it will be important to sort the variable definitions of operation by name to ensure that the order is deterministic
9091
// which allows to produce the same query string for the queries with different order of variables used in the same places
9192
// e.g.
9293
// query MyQuery($e: String!, $d: String!) {

0 commit comments

Comments
 (0)