diff --git a/src/execution/execute.ts b/src/execution/execute.ts index f092a6a797..a959269bd5 100644 --- a/src/execution/execute.ts +++ b/src/execution/execute.ts @@ -204,7 +204,7 @@ export function executeSync(args: ExecutionArgs): ExecutionResult { * Given a completed execution context and data, build the `{ errors, data }` * response defined by the "Response" section of the GraphQL specification. */ -function buildResponse( +export function buildResponse( exeContext: ExecutionContext, data: PromiseOrValue | null>, ): PromiseOrValue { @@ -318,7 +318,7 @@ export function buildExecutionContext( /** * Implements the "Executing operations" section of the spec. */ -function executeOperation( +export function executeOperation( exeContext: ExecutionContext, operation: OperationDefinitionNode, rootValue: unknown,