Skip to content

Commit

Permalink
incremental delivery: without branching, with deduplication
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jun 15, 2023
1 parent 9061654 commit afe9880
Show file tree
Hide file tree
Showing 9 changed files with 1,775 additions and 858 deletions.
634 changes: 486 additions & 148 deletions src/execution/IncrementalPublisher.ts

Large diffs are not rendered by default.

491 changes: 216 additions & 275 deletions src/execution/__tests__/defer-test.ts

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/execution/__tests__/mutations-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,13 +242,13 @@ describe('Execute: Handles mutation execution ordering', () => {
{
incremental: [
{
label: 'defer-label',
path: ['first'],
data: {
promiseToGetTheNumber: 2,
},
},
],
completed: [{ path: ['first'], label: 'defer-label' }],
hasNext: false,
},
]);
Expand Down Expand Up @@ -317,7 +317,6 @@ describe('Execute: Handles mutation execution ordering', () => {
{
incremental: [
{
label: 'defer-label',
path: [],
data: {
first: {
Expand All @@ -326,6 +325,7 @@ describe('Execute: Handles mutation execution ordering', () => {
},
},
],
completed: [{ path: [], label: 'defer-label' }],
hasNext: false,
},
]);
Expand Down
Loading

0 comments on commit afe9880

Please sign in to comment.