Skip to content

Commit

Permalink
CompleteValue function for lists and non-null need subSelectionSet (#177
Browse files Browse the repository at this point in the history
)
  • Loading branch information
danielkwinsor authored and leebyron committed Jul 2, 2016
1 parent 8a613f8 commit 57a51f0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ MergeSelectionSets(fields):
CompleteValue(fieldType, result, subSelectionSet):
* If the {fieldType} is a Non-Null type:
* Let {innerType} be the inner type of {fieldType}.
* Let {completedResult} be the result of calling {CompleteValue(innerType, result)}.
* Let {completedResult} be the result of calling {CompleteValue(innerType, result, subSelectionSet)}.
* If {completedResult} is {null}, throw a field error.
* Return {completedResult}.
* If {result} is {null} or a value similar to {null} such as {undefined} or
Expand All @@ -206,7 +206,7 @@ CompleteValue(fieldType, result, subSelectionSet):
* If {result} is not a collection of values, throw a field error.
* Let {innerType} be the inner type of {fieldType}.
* Return a list where each item is the result of calling
{CompleteValue(innerType, resultItem)}, where {resultItem} is each item
{CompleteValue(innerType, resultItem, subSelectionSet)}, where {resultItem} is each item
in {result}.
* If {fieldType} is a Scalar or Enum type:
* Return the result of "coercing" {result}, ensuring it is a legal value of
Expand Down

0 comments on commit 57a51f0

Please sign in to comment.