lib/graphql/schema.rb
# Given this schema member, find the class-based definition object
# whose `method_name` should be treated as an application hook
# @see {.visible?}
# @see {.accessible?}
Given this schema member, find the class-based definition object
whose `method_name` should be treated as an application hook
Given this schema member find the class - based definition object whose ` method_name ` should be treated as an application hook
def call_on_type_class(member, method_name, context, default:)
      member = if member.respond_to?(:type_class)
        member.type_class
      else
        member
      end
      if member.respond_to?(:relay_node_type) && (t = member.relay_node_type)
        member = t
      end
      if member.respond_to?(method_name)
        member.public_send(method_name, context)
      else
        default
      end
    end
def call_on_type_class ( member , method_name , context , default : ) member = if member . respond_to? ( :type_class ) member . type_class else member end if member . respond_to? ( :relay_node_type ) && ( t = member . relay_node_type ) member = t end if member . respond_to? ( method_name ) member . public_send ( method_name , context ) else default end end
Given this schema member, find the class-based definition object
whose `method_name` should be treated as an application hook
Given this schema member find the class - based definition object whose ` method_name ` should be treated as an application hook
member
method_name
context
default
see
None
see
None