File tree Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Expand file tree Collapse file tree 1 file changed +24
-3
lines changed Original file line number Diff line number Diff line change @@ -1156,9 +1156,12 @@ error:
1156
1156
``` graphql example
1157
1157
{
1158
1158
birthday {
1159
- ... @defer {
1159
+ ... @defer ( label : " monthDefer " ) {
1160
1160
month
1161
1161
}
1162
+ ... @defer (label : " yearDefer" ) {
1163
+ year
1164
+ }
1162
1165
}
1163
1166
}
1164
1167
```
@@ -1172,21 +1175,39 @@ Response 1, the initial response is sent:
1172
1175
}
1173
1176
```
1174
1177
1175
- Response 2, the defer payload is sent. The {data} entry has been set to {null},
1176
- as this {null} as propagated as high as the error boundary will allow.
1178
+ Response 2, the defer payload for label "monthDefer" is sent. The {data} entry
1179
+ has been set to {null}, as this {null} as propagated as high as the error
1180
+ boundary will allow.
1177
1181
1178
1182
``` json example
1179
1183
{
1180
1184
"incremental" : [
1181
1185
{
1182
1186
"path" : [" birthday" ],
1187
+ "label" : " monthDefer" ,
1183
1188
"data" : null
1184
1189
}
1185
1190
],
1186
1191
"hasNext" : false
1187
1192
}
1188
1193
```
1189
1194
1195
+ Response 3, the defer payload for label "yearDefer" is sent. The data in this
1196
+ payload is unaffected by the previous null error.
1197
+
1198
+ ``` json example
1199
+ {
1200
+ "incremental" : [
1201
+ {
1202
+ "path" : [" birthday" ],
1203
+ "label" : " yearDefer" ,
1204
+ "data" : { "year" : " 2022" }
1205
+ }
1206
+ ],
1207
+ "hasNext" : false
1208
+ }
1209
+ ```
1210
+
1190
1211
If the ` stream ` directive is present on a list field with a Non-Nullable inner
1191
1212
type, and a field error has caused a {null} to propagate to the list item, the
1192
1213
{null} should not propagate any further, and the associated Stream Payload's
You can’t perform that action at this time.
0 commit comments