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

Commit

Permalink
fix(stitching): fix reparsing of lists
Browse files Browse the repository at this point in the history
  • Loading branch information
yaacovCR committed Jun 30, 2019
1 parent 44ca2c2 commit d766fe4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/stitching/schemaRecreation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -313,7 +313,10 @@ function reparseDefaultValue(
originalType: GraphQLInputType,
newType: GraphQLInputType,
) {
if (originalType instanceof GraphQLInputObjectType && isStub(originalType)) {
if (
originalType instanceof GraphQLInputObjectType &&
isStub(getNamedType(originalType) as GraphQLInputObjectType)
) {
return parseInputValueLiteral(newType, originalDefaultValue);
}
return parseInputValue(newType, serializeInputValue(originalType, originalDefaultValue));
Expand Down

0 comments on commit d766fe4

Please sign in to comment.