@@ -950,25 +950,29 @@ streamRecord, variableValues, subsequentPayloads):
950950 - Set {isCompletedIterator} to {true} on {streamRecord}.
951951 - Return {null}.
952952 - Let {payload} be an unordered map.
953- - Let {item} be the item retrieved from {iterator}.
954- - Let {data} be the result of calling {CompleteValue(innerType, fields, item,
955- variableValues, itemPath, subsequentPayloads, parentRecord)}.
956- - Append any encountered field errors to {errors}.
957- - Increment {index}.
958- - Call {ExecuteStreamField(label, iterator, index, fields, innerType, path,
959- streamRecord, variableValues, subsequentPayloads)}.
960- - If {parentRecord} is defined:
961- - Wait for the result of {dataExecution} on {parentRecord}.
962- - If {errors} is not empty:
963- - Add an entry to {payload} named ` errors ` with the value {errors}.
964- - If a field error was raised, causing a {null} to be propagated to {data},
965- and {innerType} is a Non-Nullable type:
953+ - If an item is not retrieved because of an error:
954+ - Append the encountered error to {errors}.
966955 - Add an entry to {payload} named ` items ` with the value {null}.
967956 - Otherwise:
968- - Add an entry to {payload} named ` items ` with a list containing the value
969- {data}.
957+ - Let {item} be the item retrieved from {iterator}.
958+ - Let {data} be the result of calling {CompleteValue(innerType, fields,
959+ item, variableValues, itemPath, subsequentPayloads, parentRecord)}.
960+ - Append any encountered field errors to {errors}.
961+ - Increment {index}.
962+ - Call {ExecuteStreamField(label, iterator, index, fields, innerType, path,
963+ streamRecord, variableValues, subsequentPayloads)}.
964+ - If a field error was raised, causing a {null} to be propagated to {data},
965+ and {innerType} is a Non-Nullable type:
966+ - Add an entry to {payload} named ` items ` with the value {null}.
967+ - Otherwise:
968+ - Add an entry to {payload} named ` items ` with a list containing the value
969+ {data}.
970+ - If {errors} is not empty:
971+ - Add an entry to {payload} named ` errors ` with the value {errors}.
970972 - Add an entry to {payload} named ` label ` with the value {label}.
971973 - Add an entry to {payload} named ` path ` with the value {itemPath}.
974+ - If {parentRecord} is defined:
975+ - Wait for the result of {dataExecution} on {parentRecord}.
972976 - Return {payload}.
973977- Set {dataExecution} on {streamRecord}.
974978- Append {streamRecord} to {subsequentPayloads}.
@@ -1008,7 +1012,8 @@ subsequentPayloads, asyncRecord):
10081012 path, asyncRecord, subsequentPayloads)}.
10091013 - Return {items}.
10101014 - Otherwise:
1011- - Retrieve the next item from {result} via the {iterator}.
1015+ - Wait for the next item from {result} via the {iterator}.
1016+ - If an item is not retrieved because of an error, raise a _ field error_ .
10121017 - Let {resultItem} be the item retrieved from {result}.
10131018 - Let {itemPath} be {path} with {index} appended.
10141019 - Let {resolvedItem} be the result of calling {CompleteValue(innerType,
0 commit comments