Pattern: Missing use of :hash_key
Issue: -
Prevents defining unnecessary resolver methods in cases when :hash_key
option can be used.
# good
class Types::UserType < Types::BaseObject
field :phone, String, null: true, hash_key: :home_phone
end
# bad
class Types::UserType < Types::BaseObject
field :phone, String, null: true
def phone
object[:home_phone]
end
end