Skip to content

Commit 4b7e22b

Browse files
authored
Edit: reference merge field algos from validation rule (#435)
Helps provide context when reading the validation rule. Fixes #347
1 parent a4def97 commit 4b7e22b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

spec/Section 5 -- Validation.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,9 @@ during execution, the field and arguments to execute and the resulting value
446446
should be unambiguous. Therefore any two field selections which might both be
447447
encountered for the same object are only valid if they are equivalent.
448448

449+
During execution, the simultaneous execution of fields with the same response
450+
name is accomplished by {MergeSelectionSets()} and {CollectFields()}.
451+
449452
For simple hand-written GraphQL, this rule is obviously a clear developer error,
450453
however nested fragments can make this difficult to detect manually.
451454

@@ -973,7 +976,7 @@ referenced.
973976

974977
**Explanatory Text**
975978

976-
Named fragment spreads must refer to fragments defined within the
979+
Named fragment spreads must refer to fragments defined within the
977980
document. It is a validation error if the target of a spread is
978981
not defined.
979982

0 commit comments

Comments
 (0)