Skip to content

Commit d20eae6

Browse files
robrichardyaacovCR
authored andcommitted
clarify label is not required
1 parent bb1483e commit d20eae6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

spec/Section 6 -- Execution.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,8 @@ variableValues, parentRecord, subsequentPayloads):
801801
- Add an entry to {payload} named `data` with the value {null}.
802802
- Otherwise:
803803
- Add an entry to {payload} named `data` with the value {resultMap}.
804-
- Add an entry to {payload} named `label` with the value {label}.
804+
- If {label} is defined:
805+
- Add an entry to {payload} named `label` with the value {label}.
805806
- Add an entry to {payload} named `path` with the value {path}.
806807
- Return {payload}.
807808
- Set {dataExecution} on {deferredFragmentRecord}.
@@ -961,7 +962,8 @@ streamRecord, variableValues, subsequentPayloads):
961962
{data}.
962963
- If {errors} is not empty:
963964
- Add an entry to {payload} named `errors` with the value {errors}.
964-
- Add an entry to {payload} named `label` with the value {label}.
965+
- If {label} is defined:
966+
- Add an entry to {payload} named `label` with the value {label}.
965967
- Add an entry to {payload} named `path` with the value {itemPath}.
966968
- If {parentRecord} is defined:
967969
- Wait for the result of {dataExecution} on {parentRecord}.

0 commit comments

Comments
 (0)