@@ -288,8 +288,8 @@ CreateSourceEventStream(subscription, schema, variableValues, initialValue):
288
288
error_ .
289
289
- Let {fieldInfo} be the value of the first entry in {collectedFieldsMap}.
290
290
- Let {field} be the value of the {field} property in {fieldInfo}.
291
- - Let {fieldName} be the name of the first entry in {fields}' {field} property. Note: This value
292
- is unaffected if an alias is used.
291
+ - Let {fieldName} be the name of the first entry in {fields}' {field} property.
292
+ Note: This value is unaffected if an alias is used.
293
293
- Let {field} be the first entry in {fields}.
294
294
- Let {argumentValues} be the result of {CoerceArgumentValues(subscriptionType,
295
295
field, variableValues)}.
@@ -482,8 +482,8 @@ fragmentVariables):
482
482
{selectionSet}.
483
483
- Let {fragmentType} be the type condition on {fragment}.
484
484
- If {DoesFragmentTypeApply(objectType, fragmentType)} is {false}, continue
485
- with the next {selection} in {selectionSet}.
486
- - Let {variableDefinitions} be the variable definitions for {fragment}.
485
+ with the next {selection} in {selectionSet}. - Let {variableDefinitions}
486
+ be the variable definitions for {fragment}.
487
487
- Initialize {signatures} to an empty list.
488
488
- For each {variableDefinition} of {variableDefinitions}:
489
489
- Append the result of {GetVariableSignature(variableDefinition)} to
@@ -602,7 +602,8 @@ variableValues):
602
602
- Let {field} be the field property of {fieldInfo}.
603
603
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
604
604
is unaffected if an alias is used.
605
- - Let {fragmentVariableValues} be the fragmentVariables property of {fieldInfo}.
605
+ - Let {fragmentVariableValues} be the fragmentVariables property of
606
+ {fieldInfo}.
606
607
- Let {fieldType} be the return type defined for the field {fieldName} of
607
608
{objectType}.
608
609
- If {fieldType} is defined:
@@ -741,16 +742,20 @@ first coerces any provided argument values, then resolves a value for the field,
741
742
and finally completes that value either by recursively executing another
742
743
selection set or coercing a scalar value.
743
744
744
- ExecuteField(objectType, objectValue, fieldType, fieldDetailsList, variableValues,
745
- fragmentVariables):
745
+ ExecuteField(objectType, objectValue, fieldType, fieldDetailsList,
746
+ variableValues, fragmentVariables):
746
747
747
748
- Let {fieldDetails} be the first entry in {fieldDetailsList}.
748
- - Let {field} and {fragmentVariables} be the corresponding entries on {fieldDetails}.
749
+ - Let {field} and {fragmentVariables} be the corresponding entries on
750
+ {fieldDetails}.
749
751
- Let {fieldName} be the field name of {field}.
750
- - Let {argumentDefinitions} be the arguments defined by {objectType} for the field named {fieldName}.
751
- - Let {argumentValues} be the result of {CoerceArgumentValues(field, argumentDefinitions, variableValues, fragmentVariables)}.
752
- - Let {resolvedValue} be {ResolveFieldValue(objectType, objectValue, fieldName, argumentValues)}.
753
- Return the result of {CompleteValue(fieldType, fieldDetailsList, resolvedValue, variableValues)}.
752
+ - Let {argumentDefinitions} be the arguments defined by {objectType} for the
753
+ field named {fieldName}.
754
+ - Let {argumentValues} be the result of {CoerceArgumentValues(field,
755
+ argumentDefinitions, variableValues, fragmentVariables)}.
756
+ - Let {resolvedValue} be {ResolveFieldValue(objectType, objectValue, fieldName,
757
+ argumentValues)}. Return the result of {CompleteValue(fieldType,
758
+ fieldDetailsList, resolvedValue, variableValues)}.
754
759
755
760
### Coercing Arguments
756
761
@@ -873,8 +878,8 @@ CompleteValue(fieldType, fieldDetailsList, result, variableValues):
873
878
- If {result} is not a collection of values, raise an _ execution error_ .
874
879
- Let {innerType} be the inner type of {fieldType}.
875
880
- Return a list where each list item is the result of calling
876
- {CompleteValue(innerType, fieldDetailsList, resultItem, variableValues)}, where
877
- {resultItem} is each item in {result}.
881
+ {CompleteValue(innerType, fieldDetailsList, resultItem, variableValues)},
882
+ where {resultItem} is each item in {result}.
878
883
- If {fieldType} is a Scalar or Enum type:
879
884
- Return the result of {CoerceResult(fieldType, result)}.
880
885
- If {fieldType} is an Object, Interface, or Union type:
0 commit comments