lib/graphql/types/relay/base_edge.rb
def node_type(node_type = nil, null: true)
            if node_type
              @node_type = node_type
              # Add a default `node` field
              field :node, node_type, null: null, description: "The item at the end of the edge."
            end
            @node_type
          end
# Get or set the Object type that this edge wraps.
#
# @param node_type [Class] A `Schema::Object` subclass
# @param null [Boolean]
Get or set the Object type that this edge wraps.
Get or set the Object type that this edge wraps .
def node_type(node_type = nil, null: true)
            if node_type
              @node_type = node_type
              field :node, node_type, null: null, description: "The item at the end of the edge."
            end
            @node_type
          end
def node_type ( node_type = nil , null : true ) if node_type @node_type = node_type field :node , node_type , null : null , description : "The item at the end of the edge." end @node_type end
Get or set the Object type that this edge wraps.
Get or set the Object type that this edge wraps .
# Add a default `node` field
node_type
A `Schema::Object` subclass
A ` Schema :: Object ` subclass
null
None