UNPKG

@graphql-tools/executor

Version:

Fork of GraphQL.js' execute function

7 lines (6 loc) • 516 B
import { GraphQLSchema } from 'graphql'; import { ExecutionResult, Executor, MaybeAsyncIterable } from '@graphql-tools/utils'; import { type MaybePromise } from '@whatwg-node/promise-helpers'; import { ExecutionArgs } from './execute.cjs'; export declare function normalizedExecutor<TData = any, TVariables = any, TContext = any>(args: ExecutionArgs<TData, TVariables, TContext>): MaybePromise<MaybeAsyncIterable<ExecutionResult<TData>>>; export declare function executorFromSchema(schema: GraphQLSchema): Executor;