UNPKG

416 BTypeScriptView Raw
1import { GraphQLType, GraphQLSchema } from 'graphql';
2import { RootFieldFilter } from './Interfaces';
3export declare function filterSchema({ schema, rootFieldFilter, typeFilter, fieldFilter, }: {
4 schema: GraphQLSchema;
5 rootFieldFilter?: RootFieldFilter;
6 typeFilter?: (typeName: string, type: GraphQLType) => boolean;
7 fieldFilter?: (typeName: string, fieldName: string) => boolean;
8}): GraphQLSchema;