@kamilkisiela/graphql-tools
Version:
Useful tools to create and manipulate GraphQL schemas.
8 lines (7 loc) • 312 B
TypeScript
import { GraphQLSchema, GraphQLNamedType } from 'graphql';
import { Transform } from '../transforms/transforms';
export default class FilterTypes implements Transform {
private filter;
constructor(filter: (type: GraphQLNamedType) => boolean);
transformSchema(schema: GraphQLSchema): GraphQLSchema;
}