Skip to content

Commit 3b646e2

Browse files
committed
Else -> otherwise
1 parent 162fa68 commit 3b646e2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

spec/Section 6 -- Execution.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ ExecuteQuery(query, schema, variableValues, initialValue):
138138
selection set.
139139
- If {defers} is an empty map and {streams} is an empty list:
140140
- Return an unordered map containing {data} and {errors}.
141-
- Else:
141+
- Otherwise:
142142
- Let {responseStream} be a new event stream {responseStream}.
143143
- Call {IncrementalEventStream(responseStream, data, errors, defers, streams,
144144
variableValues)}.
@@ -251,7 +251,7 @@ initialStreams, variableValues):
251251
- Add to {completed} an unordered map containing key {id} with value
252252
{thisId}.
253253
- Optionally, {FlushStream()}.
254-
- Else:
254+
- Otherwise:
255255
- Assert: {remainingStreams} is not empty.
256256
- Let {pendingStream} be the first entry in {remainingStreams}.
257257
- Remove {pendingStream} from {remainingStreams}.
@@ -324,7 +324,7 @@ ExecuteMutation(mutation, schema, variableValues, initialValue):
324324
selection set.
325325
- If {defers} is an empty map and {streams} is an empty list:
326326
- Return an unordered map containing {data} and {errors}.
327-
- Else:
327+
- Otherwise:
328328
- Note: this places the defers after _all_ the mutations. This may not be
329329
desired; we should discuss.
330330
- Return {IncrementalEventStream(data, errors, defers, streams,
@@ -468,7 +468,7 @@ MapSourceToResponseEvent(sourceStream, subscription, schema, variableValues):
468468
- If {response} is an event stream:
469469
- For each event {event} in {response}:
470470
- Yield an event containing {event}.
471-
- Else:
471+
- Otherwise:
472472
- Yield an event containing {response}.
473473
- When {responseStream} completes: complete this event stream.
474474

@@ -484,7 +484,7 @@ ExecuteSubscriptionEvent(subscription, schema, variableValues, initialValue):
484484
selection set.
485485
- If {defers} is an empty map and {streams} is an empty list:
486486
- Return an unordered map containing {data} and {errors}.
487-
- Else:
487+
- Otherwise:
488488
- Note: this places the defers after _all_ the mutations. This may not be
489489
desired; we should discuss.
490490
- Return {IncrementalEventStream(data, errors, defers, streams,
@@ -535,7 +535,7 @@ parentPath):
535535
- If every entry in {fieldDetails} has {isDeferred} set to {true}:
536536
- Add an entry to {defers} with key {path} and value an unordered map
537537
containing {objectType}, {objectValue} and {fieldDetails}.
538-
- Else:
538+
- Otherwise:
539539
- Let {fields} be a list of all the values of the {field} key in the
540540
entries of {fieldDetails}.
541541
- Let {resolvedValue} be {ExecuteField(objectType, objectValue, fieldType,
@@ -552,7 +552,7 @@ parentPath):
552552
- If {streamDirective}'s {initialCount} argument is a variable:
553553
- Let {initialCount} be the value of that variable in
554554
{variableValues}.
555-
- Else
555+
- Otherwise
556556
- Let {initialCount} be the value of {streamDirective}'s
557557
{initialCount} argument.
558558
- If {initialCount} is {null}, not provided, or less than {0} then let
@@ -572,7 +572,7 @@ parentPath):
572572
{itemType}, {fields}, {remainingValues}, {initialCount} and
573573
{fieldDetails}.
574574
- Append {streamDetails} to {streams}.
575-
- Else:
575+
- Otherwise:
576576
- Let {responseValue}, {childDefers} and {childStreams} be the result of
577577
{CompleteValue(fieldType, fields, resolvedValue, variableValues,
578578
path)}.

0 commit comments

Comments
 (0)