UNPKG

@kamilkisiela/graphql-tools

Version:

Useful tools to create and manipulate GraphQL schemas.

8 lines (7 loc) 385 B
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; }