lib/graphql/types/relay/base_connection.rb
def edge_type(edge_type_class, edge_class: GraphQL::Relay::Edge, node_type: edge_type_class.node_type, nodes_field: true)
            # Set this connection's graphql name
            node_type_name = node_type.graphql_name

            @node_type = node_type
            @edge_type = edge_type_class
            @edge_class = edge_class

            field :edges, [edge_type_class, null: true],
              null: true,
              description: "A list of edges.",
              edge_class: edge_class

            define_nodes_field if nodes_field

            description("The connection type for #{node_type_name}.")
          end
# Configure this connection to return `edges` and `nodes` based on `edge_type_class`.
#
# This method will use the inputs to create:
# - `edges` field
# - `nodes` field
# - description
#
# It's called when you subclass this base connection, trying to use the
# class name to set defaults. You can call it again in the class definition
# to override the default (or provide a value, if the default lookup failed).


It's called when you subclass this base connection, trying to use the
class name to set defaults. You can call it again in the class definition
to override the default (or provide a value, if the default lookup failed).
It ' s called when you subclass this base connection trying to use the class name to set defaults . You can call it again in the class definition to override the default ( or provide a value if the default lookup failed ) .
def edge_type(edge_type_class, edge_class: GraphQL::Relay::Edge, node_type: edge_type_class.node_type, nodes_field: true)
            node_type_name = node_type.graphql_name
            @node_type = node_type
            @edge_type = edge_type_class
            @edge_class = edge_class
            field :edges, [edge_type_class, null: true],
              null: true,
              description: "A list of edges.",
              edge_class: edge_class
            define_nodes_field if nodes_field
            description("The connection type for #{node_type_name}.")
          end
def edge_type ( edge_type_class , edge_class : GraphQL :: Relay :: Edge , node_type : edge_type_class . node_type , nodes_field : true ) node_type_name = node_type . graphql_name @node_type = node_type @edge_type = edge_type_class @edge_class = edge_class field :edges , [ edge_type_class , null : true ] , null : true , description : "A list of edges." , edge_class : edge_class define_nodes_field if nodes_field description ( "The connection type for #{node_type_name}." ) end
Configure this connection to return `edges` and `nodes` based on `edge_type_class`.
Configure this connection to return ` edges ` and ` nodes ` based on ` edge_type_class ` .
# Set this connection's graphql name
edge_type_class
edge_class
node_type
nodes_field