We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e449cae commit f47dee7Copy full SHA for f47dee7
src/execution/execute.ts
@@ -1631,6 +1631,14 @@ export function subscribe(
1631
): PromiseOrValue<
1632
AsyncGenerator<ExecutionResult, void, void> | ExecutionResult
1633
> {
1634
+ // Until we have execution cancelling support in Subscriptions,
1635
+ // throw an error if client provides abort signal.
1636
+ if (args.signal) {
1637
+ return {
1638
+ errors: [new GraphQLError('Subscriptions do not support abort signals.')],
1639
+ };
1640
+ }
1641
+
1642
// If a valid execution context cannot be created due to incorrect arguments,
1643
// a "Response" with only errors is returned.
1644
const exeContext = buildExecutionContext(args);
0 commit comments