@kamilkisiela/graphql-tools
Version:
Useful tools to create and manipulate GraphQL schemas.
9 lines (8 loc) • 435 B
TypeScript
import { GraphQLField, GraphQLSchema } from 'graphql';
import { Transform } from './transforms';
export declare type RootFilter = (operation: 'Query' | 'Mutation' | 'Subscription', fieldName: string, field: GraphQLField<any, any>) => boolean;
export default class FilterRootFields implements Transform {
private transformer;
constructor(filter: RootFilter);
transformSchema(originalSchema: GraphQLSchema): GraphQLSchema;
}