Commit 00e2b50
authored
Introduces new incremental response format (#3886)
The `incremental` array is the actual data to be applied to the response, while the `completed` array return "metadata" about the execution, used to inform clients that defers are being executed and when all fields for that defer have been delivered.
To ensure consistency, clients are expected to process all objects in the `incremental` array for a given payload before re-rendering the associated UIs.
See graphql/defer-stream-wg#69 for full details.1 parent 75d419d commit 00e2b50
File tree
9 files changed
+1568
-830
lines changed- src
- execution
- __tests__
- jsutils
- validation/rules
9 files changed
+1568
-830
lines changedLarge diffs are not rendered by default.
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
242 | 242 | | |
243 | 243 | | |
244 | 244 | | |
245 | | - | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
249 | 248 | | |
250 | 249 | | |
251 | 250 | | |
| 251 | + | |
252 | 252 | | |
253 | 253 | | |
254 | 254 | | |
| |||
317 | 317 | | |
318 | 318 | | |
319 | 319 | | |
320 | | - | |
321 | 320 | | |
322 | 321 | | |
323 | 322 | | |
| |||
326 | 325 | | |
327 | 326 | | |
328 | 327 | | |
| 328 | + | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
| |||
0 commit comments