From 035116be407f15c455fd74134f9605692a80c258 Mon Sep 17 00:00:00 2001 From: Andy Richardson Date: Sat, 24 Jul 2021 12:11:42 +0100 Subject: [PATCH] Export utilities for working with execution context --- src/execution/execute.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,