diff --git a/src/execution/execute.ts b/src/execution/execute.ts index be0323ca76..9c5f5b4dd4 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -170,7 +170,7 @@ export function execute(args: ExecutionArgs): PromiseOrValue { const exeContext = buildExecutionContext(args); // Return early errors if execution context failed. - if (!('schema' in exeContext)) { + if (Array.isArray(exeContext)) { return { errors: exeContext }; } @@ -1090,7 +1090,7 @@ export function createSourceEventStream( const exeContext = buildExecutionContext(args); // Return early errors if execution context failed. - if (!('schema' in exeContext)) { + if (Array.isArray(exeContext)) { return { errors: exeContext }; }