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 @@ -235,14 +235,14 @@ const subschemaTypesContainSelectionSet = memoize3(function (
235235 if ( Array . isArray ( sourceSubschemaOrSourceSubschemas ) ) {
236236 return typesContainSelectionSet (
237237 sourceSubschemaOrSourceSubschemas . map (
238- sourceSubschema => sourceSubschema . schema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType
238+ sourceSubschema => sourceSubschema . transformedSchema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType
239239 ) ,
240240 selectionSet
241241 ) ;
242242 }
243243
244244 return typesContainSelectionSet (
245- [ sourceSubschemaOrSourceSubschemas . schema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType ] ,
245+ [ sourceSubschemaOrSourceSubschemas . transformedSchema . getType ( mergedTypeInfo . typeName ) as GraphQLObjectType ] ,
246246 selectionSet
247247 ) ;
248248} ) ;
You can’t perform that action at this time.
0 commit comments