Skip to content

Commit

Permalink
Fix #274 (#280)
Browse files Browse the repository at this point in the history
* Fix #274

* added changeset

Co-authored-by: Dotan Simha <dotansimha@gmail.com>
  • Loading branch information
kamilkisiela and dotansimha committed Feb 2, 2021
1 parent 83486dd commit 619d9eb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/pink-countries-know.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@graphql-eslint/eslint-plugin': patch
---

fix for `no-unreachable-types` does not recognize implemented interfaces
5 changes: 1 addition & 4 deletions packages/plugin/src/graphql-ast.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,10 +82,7 @@ export function collectReachableTypes(schema: GraphQLSchema): Set<string> {

function collectFromInterfaces(interfaces: GraphQLInterfaceType[]): void {
if (interfaces) {
interfaces.forEach(interfaceType => {
collectFromFieldMap(interfaceType.getFields());
collectFromInterfaces(interfaceType.getInterfaces());
});
interfaces.forEach(collectFrom);
}
}

Expand Down

0 comments on commit 619d9eb

Please sign in to comment.