Skip to content

Commit

Permalink
Edit: fieldType may not be defined, but will never be null (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
leebyron authored Apr 30, 2018
1 parent 15b8b40 commit 8763fd7
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions spec/Section 6 -- Execution.md
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,9 @@ ExecuteSelectionSet(selectionSet, objectType, objectValue, variableValues):
* Let {fieldName} be the name of the first entry in {fields}.
Note: This value is unaffected if an alias is used.
* Let {fieldType} be the return type defined for the field {fieldName} of {objectType}.
* If {fieldType} is {null}:
* Continue to the next iteration of {groupedFieldSet}.
* Let {responseValue} be {ExecuteField(objectType, objectValue, fields, fieldType, variableValues)}.
* Set {responseValue} as the value for {responseKey} in {resultMap}.
* If {fieldType} is defined:
* Let {responseValue} be {ExecuteField(objectType, objectValue, fields, fieldType, variableValues)}.
* Set {responseValue} as the value for {responseKey} in {resultMap}.
* Return {resultMap}.

Note: {resultMap} is ordered by which fields appear first in the query. This
Expand Down

0 comments on commit 8763fd7

Please sign in to comment.