federation/gateway/node_modules/graphql-tools/dist/transforms/RenameRootFields.d.ts
2020-11-14 16:43:58 +01:00

7 lines
385 B
TypeScript

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