diff --git a/src/execution/__tests__/executor-test.ts b/src/execution/__tests__/executor-test.ts index eff7b43bf4..955a5417a9 100644 --- a/src/execution/__tests__/executor-test.ts +++ b/src/execution/__tests__/executor-test.ts @@ -1425,14 +1425,17 @@ describe('Execute: Handles Semantic Nullability', () => { }); it('SemanticNonNull halts null propagation', async () => { + const deepData = { + f: () => null + }; + const data = { a: () => 'Apple', b: () => null, c: () => 'Cookie', - d: () => { - f: () => null - } + d: () => deepData }; + const document = parse(` query { diff --git a/src/execution/execute.ts b/src/execution/execute.ts index eab3ff210d..d1c72b3ada 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -651,7 +651,7 @@ function completeValue( throw result; } - console.log("anything", path); + console.log("anything", path, result); // If field type is NonNull, complete for inner type, and throw field error // if result is null.