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