@graphql-tools/executor
Version:
Fork of GraphQL.js' execute function
7 lines (6 loc) • 515 B
TypeScript
import { GraphQLSchema } from 'graphql';
import { ExecutionResult, Executor, MaybeAsyncIterable } from '@graphql-tools/utils';
import { type MaybePromise } from '@whatwg-node/promise-helpers';
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 function executorFromSchema(schema: GraphQLSchema): Executor;