import { GraphQL } from "https://deno.land/x/drash@v2.8.1/src/services/graphql/graphql.ts";
const { execute } = GraphQL;
Implements the "Evaluating requests" section of the GraphQL specification.
Returns either a synchronous ExecutionResult (if all encountered resolvers are synchronous), or a Promise of an ExecutionResult that will eventually be resolved and never rejected.
If the arguments to this function do not result in a legal execution context, a GraphQLError will be thrown immediately explaining the invalid input.
Accepts either an object with named arguments, or individual arguments.
Parameters
args: ExecutionArgs
Returns
PromiseOrValue<ExecutionResult>
Parameters
schema: GraphQLSchema
document: DocumentNode
optional
fieldResolver: Maybe<GraphQLFieldResolver<any, any>>optional
typeResolver: Maybe<GraphQLTypeResolver<any, any>>Returns
PromiseOrValue<ExecutionResult>