Skip to content

Commit 808d990

Browse files
committed
Formatting
1 parent 4528738 commit 808d990

File tree

2 files changed

+21
-16
lines changed

2 files changed

+21
-16
lines changed

spec/Section 2 -- Language.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -580,8 +580,8 @@ which returns the result:
580580

581581
FragmentSpread : ... FragmentName Arguments? Directives?
582582

583-
FragmentDefinition : Description? fragment FragmentName VariablesDefinition? TypeCondition
584-
Directives? SelectionSet
583+
FragmentDefinition : Description? fragment FragmentName VariablesDefinition?
584+
TypeCondition Directives? SelectionSet
585585

586586
FragmentName : Name but not `on`
587587

spec/Section 6 -- Execution.md

Lines changed: 19 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -288,8 +288,8 @@ CreateSourceEventStream(subscription, schema, variableValues, initialValue):
288288
error_.
289289
- Let {fieldInfo} be the value of the first entry in {collectedFieldsMap}.
290290
- 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.
293293
- Let {field} be the first entry in {fields}.
294294
- Let {argumentValues} be the result of {CoerceArgumentValues(subscriptionType,
295295
field, variableValues)}.
@@ -482,8 +482,8 @@ fragmentVariables):
482482
{selectionSet}.
483483
- Let {fragmentType} be the type condition on {fragment}.
484484
- 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}.
487487
- Initialize {signatures} to an empty list.
488488
- For each {variableDefinition} of {variableDefinitions}:
489489
- Append the result of {GetVariableSignature(variableDefinition)} to
@@ -602,7 +602,8 @@ variableValues):
602602
- Let {field} be the field property of {fieldInfo}.
603603
- Let {fieldName} be the name of the first entry in {fields}. Note: This value
604604
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}.
606607
- Let {fieldType} be the return type defined for the field {fieldName} of
607608
{objectType}.
608609
- If {fieldType} is defined:
@@ -741,16 +742,20 @@ first coerces any provided argument values, then resolves a value for the field,
741742
and finally completes that value either by recursively executing another
742743
selection set or coercing a scalar value.
743744

744-
ExecuteField(objectType, objectValue, fieldType, fieldDetailsList, variableValues,
745-
fragmentVariables):
745+
ExecuteField(objectType, objectValue, fieldType, fieldDetailsList,
746+
variableValues, fragmentVariables):
746747

747748
- 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}.
749751
- 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)}.
754759

755760
### Coercing Arguments
756761

@@ -873,8 +878,8 @@ CompleteValue(fieldType, fieldDetailsList, result, variableValues):
873878
- If {result} is not a collection of values, raise an _execution error_.
874879
- Let {innerType} be the inner type of {fieldType}.
875880
- 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}.
878883
- If {fieldType} is a Scalar or Enum type:
879884
- Return the result of {CoerceResult(fieldType, result)}.
880885
- If {fieldType} is an Object, Interface, or Union type:

0 commit comments

Comments
 (0)