diff --git a/package.json b/package.json index f8c47a1535..2c59060dd0 100644 --- a/package.json +++ b/package.json @@ -85,9 +85,9 @@ "prism-react-renderer": "1.3.3", "react": "17.0.2", "react-dom": "17.0.2", - "ts-node": "10.8.0", - "typedoc": "0.22.15", - "typescript": "4.6.4", + "ts-node": "10.8.1", + "typedoc": "0.22.17", + "typescript": "4.7.3", "url-loader": "4.1.1" }, "publishConfig": { diff --git a/src/execution/execute.ts b/src/execution/execute.ts index be0323ca76..bd2065ee98 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) || !('schema' in 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) || !('schema' in exeContext)) { return { errors: exeContext }; }