UNPKG

@graphql-tools/delegate

Version:

A set of utils for faster development of GraphQL tools

11 lines (10 loc) 494 B
import { ExecutionRequest, ExecutionResult } from '@graphql-tools/utils'; import { DelegationContext } from './types.js'; export declare class Transformer<TContext extends Record<string, any> = Record<string, any>> { private transformations; private delegationContext; constructor(context: DelegationContext<TContext>); private addTransform; transformRequest(originalRequest: ExecutionRequest): ExecutionRequest; transformResult(originalResult: ExecutionResult): any; }