class GraphQL::Rubocop::GraphQL::RootTypesInBlock

Identify (and auto-correct) any root types in your schema file.

Examples

Example: # bad, immediately causes Rails to load app/graphql/types/query.rb

query Types::Query

# good, defers loading until the file is needed
query { Types::Query }