Skip to content

Commit e0a6e9e

Browse files
committed
feat(execution): experimental batch field resolution
1 parent a3cd04a commit e0a6e9e

10 files changed

Lines changed: 2101 additions & 46 deletions

File tree

src/execution/Executor.ts

Lines changed: 465 additions & 29 deletions
Large diffs are not rendered by default.

src/execution/__tests__/executor-test.ts

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,13 @@ describe('Execute: Handles basic execution tasks', () => {
279279
const field = operation.selectionSet.selections[0];
280280
expect(resolvedInfo).to.deep.include({
281281
fieldNodes: [field],
282-
path: { prev: undefined, key: 'result', typename: 'Test' },
282+
path: {
283+
prev: undefined,
284+
key: 'result',
285+
typename: 'Test',
286+
isNullable: true,
287+
parentNullablePath: undefined,
288+
},
283289
variableValues: {
284290
sources: {
285291
var: {
@@ -366,12 +372,18 @@ describe('Execute: Handles basic execution tasks', () => {
366372
expect(path).to.deep.equal({
367373
key: 'l2',
368374
typename: 'SomeObject',
375+
isNullable: true,
376+
parentNullablePath: undefined,
369377
prev: {
370378
key: 0,
371379
typename: undefined,
380+
isNullable: false,
381+
parentNullablePath: undefined,
372382
prev: {
373383
key: 'l1',
374384
typename: 'SomeQuery',
385+
isNullable: false,
386+
parentNullablePath: undefined,
375387
prev: undefined,
376388
},
377389
},

0 commit comments

Comments
 (0)