Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CompleteValue function for lists and non-null need subSelectionSet #177

Merged
merged 1 commit into from
Jul 2, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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