File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ ---
2+ ' @graphql-tools/delegate ' : patch
3+ ---
4+
5+ fix(typeMerging): enable subschemas to use keys that have been renamed via transforms
Original file line number Diff line number Diff line change @@ -234,14 +234,14 @@ const subschemaTypesContainSelectionSet = memoize3(function (
234234 if ( Array . isArray ( sourceSubschemaOrSourceSubschemas ) ) {
235235 return typesContainSelectionSet (
236236 sourceSubschemaOrSourceSubschemas . map (
237- sourceSubschema => sourceSubschema . schema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType
237+ sourceSubschema => sourceSubschema . transformedSchema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType
238238 ) ,
239239 selectionSet
240240 ) ;
241241 }
242242
243243 return typesContainSelectionSet (
244- [ sourceSubschemaOrSourceSubschemas . schema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType ] ,
244+ [ sourceSubschemaOrSourceSubschemas . transformedSchema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType ] ,
245245 selectionSet
246246 ) ;
247247} ) ;
You can’t perform that action at this time.
0 commit comments