Skip to content

Fix a few bugs in defined-types-are-used rule#94

Merged
cjoudrey merged 3 commits intomasterfrom
fix-defined-types-are-used
Feb 12, 2018
Merged

Fix a few bugs in defined-types-are-used rule#94
cjoudrey merged 3 commits intomasterfrom
fix-defined-types-are-used

Conversation

@cjoudrey
Copy link
Copy Markdown
Owner

This pull request fixes two issues with the defined-types-are-used rule.

  • Mutation object type shouldn't be reported as unused as GraphQL defaults to the Mutation object type as the schema's mutation root.

  • An object type that implements an interface that is referenced is ok. For example, if an object implements Node and there is a field of type node: Node in type Query.

This pull request also better test coverage around some edge cases.

@cjoudrey cjoudrey changed the title Fix a few bugs in defined-types-are-used Fix a few bugs in defined-types-are-used rule Feb 11, 2018
@cjoudrey cjoudrey merged commit ec70879 into master Feb 12, 2018
@cjoudrey cjoudrey deleted the fix-defined-types-are-used branch February 12, 2018 23:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant