UNPKG

566 BTypeScriptView Raw
1import { GraphQLSchema, GraphQLInputFieldConfig } from 'graphql';
2import { Transform, Request } from '@graphql-tools/utils';
3export default class RenameInputObjectFields implements Transform {
4 private readonly renamer;
5 private readonly transformer;
6 private reverseMap;
7 constructor(renamer: (typeName: string, fieldName: string, inputFieldConfig: GraphQLInputFieldConfig) => string);
8 transformSchema(originalSchema: GraphQLSchema): GraphQLSchema;
9 transformRequest(originalRequest: Request, delegationContext?: Record<string, any>): Request;
10}