diff --git a/src/schemaVisitor.ts b/src/schemaVisitor.ts index 47018dea454..b94338d257e 100644 --- a/src/schemaVisitor.ts +++ b/src/schemaVisitor.ts @@ -353,7 +353,8 @@ export function healSchema(schema: GraphQLSchema) { // Dangling references to renamed types should remain in the schema // during healing, but must be removed now, so that the following // invariant holds for all names: schema.getType(name).name === name - if (! hasOwn.call(actualNamedTypeMap, typeName)) { + if (! typeName.startsWith('__') && + ! hasOwn.call(actualNamedTypeMap, typeName)) { return null; } });