@@ -138,7 +138,7 @@ ExecuteQuery(query, schema, variableValues, initialValue):
138
138
selection set.
139
139
- If {defers} is an empty map and {streams} is an empty list:
140
140
- Return an unordered map containing {data} and {errors}.
141
- - Else :
141
+ - Otherwise :
142
142
- Let {responseStream} be a new event stream {responseStream}.
143
143
- Call {IncrementalEventStream(responseStream, data, errors, defers, streams,
144
144
variableValues)}.
@@ -251,7 +251,7 @@ initialStreams, variableValues):
251
251
- Add to {completed} an unordered map containing key {id} with value
252
252
{thisId}.
253
253
- Optionally, {FlushStream()}.
254
- - Else :
254
+ - Otherwise :
255
255
- Assert: {remainingStreams} is not empty.
256
256
- Let {pendingStream} be the first entry in {remainingStreams}.
257
257
- Remove {pendingStream} from {remainingStreams}.
@@ -324,7 +324,7 @@ ExecuteMutation(mutation, schema, variableValues, initialValue):
324
324
selection set.
325
325
- If {defers} is an empty map and {streams} is an empty list:
326
326
- Return an unordered map containing {data} and {errors}.
327
- - Else :
327
+ - Otherwise :
328
328
- Note: this places the defers after _ all_ the mutations. This may not be
329
329
desired; we should discuss.
330
330
- Return {IncrementalEventStream(data, errors, defers, streams,
@@ -468,7 +468,7 @@ MapSourceToResponseEvent(sourceStream, subscription, schema, variableValues):
468
468
- If {response} is an event stream:
469
469
- For each event {event} in {response}:
470
470
- Yield an event containing {event}.
471
- - Else :
471
+ - Otherwise :
472
472
- Yield an event containing {response}.
473
473
- When {responseStream} completes: complete this event stream.
474
474
@@ -484,7 +484,7 @@ ExecuteSubscriptionEvent(subscription, schema, variableValues, initialValue):
484
484
selection set.
485
485
- If {defers} is an empty map and {streams} is an empty list:
486
486
- Return an unordered map containing {data} and {errors}.
487
- - Else :
487
+ - Otherwise :
488
488
- Note: this places the defers after _ all_ the mutations. This may not be
489
489
desired; we should discuss.
490
490
- Return {IncrementalEventStream(data, errors, defers, streams,
@@ -535,7 +535,7 @@ parentPath):
535
535
- If every entry in {fieldDetails} has {isDeferred} set to {true}:
536
536
- Add an entry to {defers} with key {path} and value an unordered map
537
537
containing {objectType}, {objectValue} and {fieldDetails}.
538
- - Else :
538
+ - Otherwise :
539
539
- Let {fields} be a list of all the values of the {field} key in the
540
540
entries of {fieldDetails}.
541
541
- Let {resolvedValue} be {ExecuteField(objectType, objectValue, fieldType,
@@ -552,7 +552,7 @@ parentPath):
552
552
- If {streamDirective}'s {initialCount} argument is a variable:
553
553
- Let {initialCount} be the value of that variable in
554
554
{variableValues}.
555
- - Else
555
+ - Otherwise
556
556
- Let {initialCount} be the value of {streamDirective}'s
557
557
{initialCount} argument.
558
558
- If {initialCount} is {null}, not provided, or less than {0} then let
@@ -572,7 +572,7 @@ parentPath):
572
572
{itemType}, {fields}, {remainingValues}, {initialCount} and
573
573
{fieldDetails}.
574
574
- Append {streamDetails} to {streams}.
575
- - Else :
575
+ - Otherwise :
576
576
- Let {responseValue}, {childDefers} and {childStreams} be the result of
577
577
{CompleteValue(fieldType, fields, resolvedValue, variableValues,
578
578
path)}.
0 commit comments