UNPKG

@graphql-mesh/transform-filter-schema

Version:
14 lines (13 loc) 530 B
import type { GraphQLSchema } from 'graphql'; import type { MeshTransform, YamlConfig } from '@graphql-mesh/types'; export default class BareFilter implements MeshTransform { noWrap: boolean; typeGlobs: string[]; fieldsMap: Map<string, string[]>; argsMap: Map<string, string[]>; constructor({ config: { filters } }: { config: YamlConfig.FilterSchemaTransform; }); matchInArray(rulesArray: string[], value: string): null | undefined; transformSchema(schema: GraphQLSchema): GraphQLSchema; }