Skip to content
This repository has been archived by the owner on Apr 15, 2020. It is now read-only.

Commit

Permalink
fix(visitSchema): new interfaces should not break schema.
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Sep 8, 2019
1 parent cb61e68 commit 27c61f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schemaVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 27c61f8

Please sign in to comment.