Skip to content

Commit 035116b

Browse files
Export utilities for working with execution context
1 parent 6a5f51f commit 035116b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/execution/execute.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ export function executeSync(args: ExecutionArgs): ExecutionResult {
204204
* Given a completed execution context and data, build the `{ errors, data }`
205205
* response defined by the "Response" section of the GraphQL specification.
206206
*/
207-
function buildResponse(
207+
export function buildResponse(
208208
exeContext: ExecutionContext,
209209
data: PromiseOrValue<ObjMap<unknown> | null>,
210210
): PromiseOrValue<ExecutionResult> {
@@ -318,7 +318,7 @@ export function buildExecutionContext(
318318
/**
319319
* Implements the "Executing operations" section of the spec.
320320
*/
321-
function executeOperation(
321+
export function executeOperation(
322322
exeContext: ExecutionContext,
323323
operation: OperationDefinitionNode,
324324
rootValue: unknown,

0 commit comments

Comments
 (0)