Skip to content

Commit a584f25

Browse files
committed
apply review feedback
revert changes to exported functions
1 parent 888e083 commit a584f25

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

src/execution/execute.ts

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,8 +236,11 @@ function buildResponse(
236236
/**
237237
* Essential assertions before executing to provide developer feedback for
238238
* improper use of the GraphQL library.
239+
*
240+
* TODO: consider no longer exporting this function
241+
* @internal
239242
*/
240-
function assertValidExecutionArguments(
243+
export function assertValidExecutionArguments(
241244
schema: GraphQLSchema,
242245
document: DocumentNode,
243246
rawVariableValues: Maybe<{ readonly [variable: string]: unknown }>,
@@ -259,8 +262,11 @@ function assertValidExecutionArguments(
259262
* execute, which we will pass throughout the other execution methods.
260263
*
261264
* Throws a GraphQLError if a valid execution context cannot be created.
265+
*
266+
* TODO: consider no longer exporting this function
267+
* @internal
262268
*/
263-
function buildExecutionContext(
269+
export function buildExecutionContext(
264270
args: ExecutionArgs,
265271
): ReadonlyArray<GraphQLError> | ExecutionContext {
266272
const {
@@ -540,7 +546,11 @@ function executeField(
540546
}
541547
}
542548

543-
function buildResolveInfo(
549+
/**
550+
* TODO: consider no longer exporting this function
551+
* @internal
552+
*/
553+
export function buildResolveInfo(
544554
exeContext: ExecutionContext,
545555
fieldDef: GraphQLField<unknown, unknown>,
546556
fieldNodes: ReadonlyArray<FieldNode>,

0 commit comments

Comments
 (0)