File tree 1 file changed +1
-8
lines changed
1 file changed +1
-8
lines changed Original file line number Diff line number Diff line change @@ -317,13 +317,6 @@ export function extendSchema(
317
317
} ) ;
318
318
}
319
319
320
- function getExtendedType< T : GraphQLNamedType > (type: T): T {
321
- if ( ! extendTypeCache [ type . name ] ) {
322
- extendTypeCache [ type . name ] = extendType ( type ) ;
323
- }
324
- return (extendTypeCache[type.name]: any);
325
- }
326
-
327
320
function extendInputObjectType(
328
321
type: GraphQLInputObjectType,
329
322
): GraphQLInputObjectType {
@@ -504,7 +497,7 @@ export function extendSchema(
504
497
? type . extensionASTNodes . concat ( typeExtensionsMap [ name ] )
505
498
: typeExtensionsMap [ name ]
506
499
: type . extensionASTNodes ;
507
- const unionTypes = type . getTypes ( ) . map ( getExtendedType ) ;
500
+ const unionTypes = type . getTypes ( ) . map ( extendNamedType ) ;
508
501
509
502
// If there are any extensions to the union, apply those here.
510
503
const extensions = typeExtensionsMap [ type . name ] ;
You can’t perform that action at this time.
0 commit comments