Skip to content

Commit

Permalink
interface / interface always implements an abstract type
Browse files Browse the repository at this point in the history
  • Loading branch information
pozylon committed Jan 6, 2018
1 parent 789e387 commit 3ea7904
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/stitching/delegateToSchema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,6 +504,11 @@ function implementsAbstractType(
child instanceof GraphQLObjectType
) {
return child.getInterfaces().indexOf(parent) !== -1;
} else if (
parent instanceof GraphQLInterfaceType &&
child instanceof GraphQLInterfaceType
) {
return true
} else if (
parent instanceof GraphQLUnionType &&
child instanceof GraphQLObjectType
Expand Down

0 comments on commit 3ea7904

Please sign in to comment.