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 0a8f4f8 commit 148699fCopy full SHA for 148699f
src/execution/execute.ts
@@ -1661,6 +1661,14 @@ export function experimentalSubscribeIncrementally(
1661
>
1662
| ExecutionResult
1663
> {
1664
+ // Until we have execution cancelling support in Subscriptions,
1665
+ // throw an error if client provides abort signal.
1666
+ if (args.signal) {
1667
+ return {
1668
+ errors: [new GraphQLError('Subscriptions do not support abort signals.')],
1669
+ };
1670
+ }
1671
+
1672
// If a valid execution context cannot be created due to incorrect arguments,
1673
// a "Response" with only errors is returned.
1674
const exeContext = buildExecutionContext(args);
0 commit comments