Skip to content

Commit 66968ce

Browse files
committed
revert cancellation
1 parent 60cc525 commit 66968ce

12 files changed

Lines changed: 35 additions & 1145 deletions

src/execution/AbortSignalListener.ts

Lines changed: 0 additions & 91 deletions
This file was deleted.

src/execution/ResolveInfo.ts

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ export class ResolveInfo implements GraphQLResolveInfo {
2626
private _fieldDetailsList: FieldDetailsList;
2727
private _parentType: GraphQLObjectType;
2828
private _path: Path;
29-
private _abortSignal: AbortSignal | undefined;
3029

3130
private _fieldName: string | undefined;
3231
private _fieldNodes: ReadonlyArray<FieldNode> | undefined;
@@ -38,21 +37,18 @@ export class ResolveInfo implements GraphQLResolveInfo {
3837
private _operation: OperationDefinitionNode | undefined;
3938
private _variableValues: VariableValues | undefined;
4039

41-
// eslint-disable-next-line max-params
4240
constructor(
4341
validatedExecutionArgs: ValidatedExecutionArgs,
4442
fieldDef: GraphQLField<unknown, unknown>,
4543
fieldDetailsList: FieldDetailsList,
4644
parentType: GraphQLObjectType,
4745
path: Path,
48-
abortSignal: AbortSignal | undefined,
4946
) {
5047
this._validatedExecutionArgs = validatedExecutionArgs;
5148
this._fieldDef = fieldDef;
5249
this._fieldDetailsList = fieldDetailsList;
5350
this._parentType = parentType;
5451
this._path = path;
55-
this._abortSignal = abortSignal;
5652
}
5753

5854
get fieldName(): string {
@@ -107,8 +103,4 @@ export class ResolveInfo implements GraphQLResolveInfo {
107103
this._variableValues ??= this._validatedExecutionArgs.variableValues;
108104
return this._variableValues;
109105
}
110-
111-
get abortSignal(): AbortSignal | undefined {
112-
return this._abortSignal;
113-
}
114106
}

src/execution/__tests__/AbortSignalListener-test.ts

Lines changed: 0 additions & 170 deletions
This file was deleted.

src/execution/__tests__/ResolveInfo-test.ts

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,10 @@ describe('ResolveInfo', () => {
1919
fields: { test: { type: GraphQLString } },
2020
});
2121

22-
const abortController = new AbortController();
23-
const abortSignal = abortController.signal;
24-
2522
const validatedExecutionArgs = validateExecutionArgs({
2623
schema: new GraphQLSchema({ query }),
2724
document: parse(`{ test }`),
2825
rootValue: { test: 'root' },
29-
abortSignal,
3026
});
3127

3228
assert('schema' in validatedExecutionArgs);
@@ -54,7 +50,6 @@ describe('ResolveInfo', () => {
5450
fieldDetailsList,
5551
query,
5652
path,
57-
abortSignal,
5853
);
5954

6055
it('exposes fieldName', () => {
@@ -104,8 +99,4 @@ describe('ResolveInfo', () => {
10499
validatedExecutionArgs.variableValues,
105100
);
106101
});
107-
108-
it('exposes abortSignal', () => {
109-
expect(resolveInfo.abortSignal).to.equal(abortSignal);
110-
});
111102
});

0 commit comments

Comments
 (0)