UNPKG

385 BTypeScriptView Raw
1import { GraphQLField, GraphQLSchema } from 'graphql';
2import { Transform } from './transforms';
3export default class RenameRootFields implements Transform {
4 private transformer;
5 constructor(renamer: (operation: 'Query' | 'Mutation' | 'Subscription', name: string, field: GraphQLField<any, any>) => string);
6 transformSchema(originalSchema: GraphQLSchema): GraphQLSchema;
7}