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 Jul 6, 2023
1 parent 77c1011 commit 272c52e
Show file tree
Hide file tree
Showing 9 changed files with 1,654 additions and 819 deletions.
582 changes: 445 additions & 137 deletions src/execution/IncrementalPublisher.ts

Large diffs are not rendered by default.

485 changes: 213 additions & 272 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 272c52e

Please sign in to comment.