Skip to content

Commit 619d9eb

Browse files
Fix #274 (#280)
* Fix #274 * added changeset Co-authored-by: Dotan Simha <[email protected]>
1 parent 83486dd commit 619d9eb

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

.changeset/pink-countries-know.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'@graphql-eslint/eslint-plugin': patch
3+
---
4+
5+
fix for `no-unreachable-types` does not recognize implemented interfaces

packages/plugin/src/graphql-ast.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -82,10 +82,7 @@ export function collectReachableTypes(schema: GraphQLSchema): Set<string> {
8282

8383
function collectFromInterfaces(interfaces: GraphQLInterfaceType[]): void {
8484
if (interfaces) {
85-
interfaces.forEach(interfaceType => {
86-
collectFromFieldMap(interfaceType.getFields());
87-
collectFromInterfaces(interfaceType.getInterfaces());
88-
});
85+
interfaces.forEach(collectFrom);
8986
}
9087
}
9188

0 commit comments

Comments
 (0)