UNPKG

@graphql-mesh/transform-filter-schema

Version:
8 lines (7 loc) 378 B
import type { GraphQLSchema } from 'graphql'; /** * mapSchema can leave schema.astNode.operationTypes pointing at root types that * were removed (e.g. empty Mutation after filterSchema). Heal those AST nodes so * later SDL round-trips (mergeSchemas / printSchemaWithDirectives) stay valid. */ export declare function healSchemaRootAst(schema: GraphQLSchema): GraphQLSchema;