UNPKG

755 BTypeScriptView Raw
1import { GraphQLSchema } from 'graphql';
2import { ArgumentFilter, DirectiveFilter, EnumValueFilter, FieldFilter, RootFieldFilter, TypeFilter } from './Interfaces.js';
3export declare function filterSchema({ schema, typeFilter, fieldFilter, rootFieldFilter, objectFieldFilter, interfaceFieldFilter, inputObjectFieldFilter, argumentFilter, directiveFilter, enumValueFilter, }: {
4 schema: GraphQLSchema;
5 rootFieldFilter?: RootFieldFilter;
6 typeFilter?: TypeFilter;
7 fieldFilter?: FieldFilter;
8 objectFieldFilter?: FieldFilter;
9 interfaceFieldFilter?: FieldFilter;
10 inputObjectFieldFilter?: FieldFilter;
11 argumentFilter?: ArgumentFilter;
12 directiveFilter?: DirectiveFilter;
13 enumValueFilter?: EnumValueFilter;
14}): GraphQLSchema;