Class: GQL::Connection
Instance Attribute Summary
Attributes inherited from Field
#ast_node, #context, #target, #variables
Class Method Summary collapse
Methods inherited from Field
execute, #initialize, #scalar_value, #value
Methods included from Mixins::Common
Constructor Details
This class inherits a constructor from GQL::Field
Class Method Details
.build_class(id, proc, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/gql/connection.rb', line 4 def build_class(id, proc, = {}) list_class = .delete(:list_class) || GQL.default_list_class item_class = .delete(:item_class) Registry.fetch(list_class).build_class(id, proc, ).tap do |field_class| field_class.array :edges, -> { target }, item_class: item_class end end |