diff --git a/src/execution/execute.ts b/src/execution/execute.ts index ebb9116b23..a7ff5ce607 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -1678,7 +1678,7 @@ async function* ensureAsyncIterable( function mapSourceToResponse( exeContext: ExecutionContext, resultOrStream: ExecutionResult | AsyncIterable, -): PromiseOrValue< +): | AsyncGenerator< | ExecutionResult | InitialIncrementalExecutionResult @@ -1686,8 +1686,7 @@ function mapSourceToResponse( void, void > - | ExecutionResult -> { + | ExecutionResult { if (!isAsyncIterable(resultOrStream)) { return resultOrStream; }