File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -280,10 +280,6 @@ export function visitSchema(
280280
281281 visit ( schema ) ;
282282
283- // Automatically update any references to named schema types replaced during
284- // the traversal, so implementors don't have to worry about that.
285- healSchema ( schema ) ;
286-
287283 // Return the original schema for convenience, even though it cannot have
288284 // been replaced or removed by the code above.
289285 return schema ;
@@ -601,6 +597,10 @@ export class SchemaDirectiveVisitor extends SchemaVisitor {
601597
602598 visitSchema ( schema , visitorSelector ) ;
603599
600+ // Automatically update any references to named schema types replaced
601+ // during the traversal, so implementors don't have to worry about that.
602+ healSchema ( schema ) ;
603+
604604 return createdVisitors ;
605605 }
606606
You can’t perform that action at this time.
0 commit comments