UNPKG

graphql-modules

Version:

Create reusable, maintainable, testable and extendable GraphQL modules

15 lines (14 loc) 660 B
import type { DocumentNode, ExecutionArgs, ExecutionResult } from 'graphql'; import type { TypedDocumentNode } from '@graphql-typed-document-node/core'; import type { Application, OperationController } from '../application/types'; import type { ValueOrPromise } from '../shared/types'; export declare function execute<TResult = { [key: string]: any; }, TVariables = { [key: string]: any; }>(app: Application, inputs: Omit<ExecutionArgs, 'schema'> & { document: DocumentNode | TypedDocumentNode<TResult, TVariables>; variableValues?: TVariables; }, options?: { controller?: OperationController; }): ValueOrPromise<ExecutionResult<TResult>>;