@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
6 lines (5 loc) • 464 B
TypeScript
import { GraphQLSchema } from 'graphql';
import { ExecutionResult, Executor, MaybeAsyncIterable, MaybePromise } from '@graphql-tools/utils';
import { ExecutionArgs } from './execute.js';
export declare function normalizedExecutor<TData = any, TVariables = any, TContext = any>(args: ExecutionArgs<TData, TVariables, TContext>): MaybePromise<MaybeAsyncIterable<ExecutionResult<TData>>>;
export declare const executorFromSchema: (schema: GraphQLSchema) => Executor;