Class: GraphQL::Rails::Fields
- Inherits:
-
SimpleDelegator
- Object
- SimpleDelegator
- GraphQL::Rails::Fields
- Defined in:
- lib/graphql/rails/fields.rb
Overview
Object that transforms key lookups on an object to the active field naming convention, delegating all remaining methods as-is.
Instance Method Summary collapse
Instance Method Details
#[](key) ⇒ Object
6 7 8 |
# File 'lib/graphql/rails/fields.rb', line 6 def [](key) __getobj__[Types.to_field_name(key)] end |