Skip to content

Commit 4c057eb

Browse files
authored
add deprecated note to assertValidExecutionArguments (#4336)
to notify users of the deep import of removal in v17
1 parent 3f8f27a commit 4c057eb

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/execution/execute.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -290,6 +290,7 @@ function buildResponse(
290290
* Essential assertions before executing to provide developer feedback for
291291
* improper use of the GraphQL library.
292292
*
293+
* @deprecated will be removed in v17 in favor of assertValidSchema() and TS checks
293294
* @internal
294295
*/
295296
export function assertValidExecutionArguments(

src/execution/subscribe.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ import type {
1919
ExecutionResult,
2020
} from './execute';
2121
import {
22+
// eslint-disable-next-line import/no-deprecated
2223
assertValidExecutionArguments,
2324
buildExecutionContext,
2425
buildResolveInfo,
@@ -160,6 +161,7 @@ export async function createSourceEventStream(
160161

161162
// If arguments are missing or incorrectly typed, this is an internal
162163
// developer mistake which should throw an early error.
164+
// eslint-disable-next-line import/no-deprecated
163165
assertValidExecutionArguments(schema, document, variableValues);
164166

165167
// If a valid execution context cannot be created due to incorrect arguments,

0 commit comments

Comments
 (0)