Class: GraphQL::Modernize::Rules::RelayConnectionType
- Defined in:
- lib/graphql/modernize/rules/relay.rb
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
Methods inherited from Base
#initialize, node_pattern, node_types, rule, #visit
Constructor Details
This class inherits a constructor from GraphQL::Modernize::Rules::Base
Instance Method Details
#on_match(node, _captures) ⇒ Object
25 26 27 28 29 |
# File 'lib/graphql/modernize/rules/relay.rb', line 25 def on_match(node, _captures) return unless constant_source(node.receiver) == "GraphQL::Relay::ConnectionType" add_offense(node.location, message: "Migrate to the generated type's `connection_type` manually") end |