Skip to content

Conversation

@cjoudrey
Copy link
Owner

Inspired by prior work done in #266.

This pull request modifies the DefinedTypesAreUsed rule to report unused types named Query, Mutation, and Subscription when the schema is configured to use different root object types.

For example, the following schema would report an error:

# Query is unused and will be reported as so.
type Query {
  a: String
}

type QueryRoot {
  a: String
}

schema {
  query: QueryRoot
}

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.

2 participants