Skip to content

Commit a1e8f6e

Browse files
committed
add deprecated note to assertValidExecutionArguments
to notify theoretical users via deep import of imminent removal
1 parent 05c92f4 commit a1e8f6e

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

Diff for: src/execution/execute.ts

+1
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,7 @@ function buildResponse(
246246
* Essential assertions before executing to provide developer feedback for
247247
* improper use of the GraphQL library.
248248
*
249+
* @deprecated will be removed in v17 in favor of assertValidSchema() and TS checks
249250
* @internal
250251
*/
251252
export function assertValidExecutionArguments(

Diff for: src/execution/subscribe.ts

+2
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)