Skip to main content
Latest
function buildExecutionContext
import { buildExecutionContext } from "https://deno.land/x/graphql_deno@v15.0.0/lib/execution/execute.d.ts";

Constructs a ExecutionContext object from the arguments passed to execute, which we will pass throughout the other execution methods.

Throws a GraphQLError if a valid execution context cannot be created.

Parameters

document: DocumentNode
rootValue: any
contextValue: any
rawVariableValues: Maybe<{ [key: string]: any; }>
operationName: Maybe<string>
fieldResolver: Maybe<GraphQLFieldResolver<any, any>>
optional
typeResolver: Maybe<GraphQLTypeResolver<any, any>>