Skip to content

Commit 57a51f0

Browse files
danielkwinsorleebyron
authored andcommitted
CompleteValue function for lists and non-null need subSelectionSet (#177)
1 parent 8a613f8 commit 57a51f0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/Section 6 -- Execution.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ MergeSelectionSets(fields):
197197
CompleteValue(fieldType, result, subSelectionSet):
198198
* If the {fieldType} is a Non-Null type:
199199
* Let {innerType} be the inner type of {fieldType}.
200-
* Let {completedResult} be the result of calling {CompleteValue(innerType, result)}.
200+
* Let {completedResult} be the result of calling {CompleteValue(innerType, result, subSelectionSet)}.
201201
* If {completedResult} is {null}, throw a field error.
202202
* Return {completedResult}.
203203
* If {result} is {null} or a value similar to {null} such as {undefined} or
@@ -206,7 +206,7 @@ CompleteValue(fieldType, result, subSelectionSet):
206206
* If {result} is not a collection of values, throw a field error.
207207
* Let {innerType} be the inner type of {fieldType}.
208208
* Return a list where each item is the result of calling
209-
{CompleteValue(innerType, resultItem)}, where {resultItem} is each item
209+
{CompleteValue(innerType, resultItem, subSelectionSet)}, where {resultItem} is each item
210210
in {result}.
211211
* If {fieldType} is a Scalar or Enum type:
212212
* Return the result of "coercing" {result}, ensuring it is a legal value of

0 commit comments

Comments
 (0)