File tree 1 file changed +6
-5
lines changed
1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -5776,14 +5776,15 @@ ERROR
5776
5776
ValidateSelectionSet (selectionSet, parentType):
5777
5777
5778
5778
- For each {selection } in {selectionSet }:
5779
- - Let {selectedField } be the field named by {selection } in {parentType }.
5779
+ - Let {selectedField } be the field selected by {selection } in {parentType }.
5780
5780
- If {selectedField } does not exist on {parentType }:
5781
5781
- return false
5782
- - If {selectedField } returns a composite type then {selection}
5783
- - Let {subSelections } be the selections in {selection }
5784
- - If {subSelections } is empty
5782
+ - Let {selectedType } be the type of {selectedField}
5783
+ - If {selectedType } is a composite type
5784
+ - Let {subSelectionSet } be the selection set of {selection }
5785
+ - If {subSelectionSet } is empty
5785
5786
- return false
5786
- - If {ValidateSelectionSet (subSelections , fieldType)} is false
5787
+ - If {ValidateSelectionSet (subSelectionSet , fieldType)} is false
5787
5788
- return false
5788
5789
- return true
5789
5790
You can’t perform that action at this time.
0 commit comments