@graphql-tools/delegate
Version:
A set of utils for faster development of GraphQL tools
11 lines (10 loc) • 495 B
text/typescript
import { ExecutionRequest, ExecutionResult } from '@graphql-tools/utils';
import { DelegationContext } from './types.cjs';
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;
}