From 27c61f880f31f44e03b8036cd8509e9538b2bc73 Mon Sep 17 00:00:00 2001 From: yaacovCR Date: Sun, 8 Sep 2019 11:08:51 -0400 Subject: [PATCH] fix(visitSchema): new interfaces should not break schema. --- src/schemaVisitor.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/schemaVisitor.ts b/src/schemaVisitor.ts index dedcba8757b..e5e2c58b0aa 100644 --- a/src/schemaVisitor.ts +++ b/src/schemaVisitor.ts @@ -364,7 +364,7 @@ export function healSchema(schema: GraphQLSchema) { } else if (type instanceof GraphQLObjectType) { healFields(type); - each(type.getInterfaces(), iface => heal(iface)); + updateEachKey(type.getInterfaces(), iface => healType(iface)); } else if (type instanceof GraphQLInterfaceType) { healFields(type);