Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add deprecated note to assertValidExecutionArguments #4336

Open
wants to merge 1 commit into
base: 16.x.x
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/execution/execute.ts
Original file line number Diff line number Diff line change
@@ -246,6 +246,7 @@ function buildResponse(
* Essential assertions before executing to provide developer feedback for
* improper use of the GraphQL library.
*
* @deprecated will be removed in v17 in favor of assertValidSchema() and TS checks
* @internal
*/
export function assertValidExecutionArguments(
2 changes: 2 additions & 0 deletions src/execution/subscribe.ts
Original file line number Diff line number Diff line change
@@ -19,6 +19,7 @@ import type {
ExecutionResult,
} from './execute';
import {
// eslint-disable-next-line import/no-deprecated
assertValidExecutionArguments,
buildExecutionContext,
buildResolveInfo,
@@ -160,6 +161,7 @@ export async function createSourceEventStream(

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

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