Sha256: dd10fa613f082db5ef720b14f4190e6e4b7ed00d8606bfcdbee905baffc8ffa2
Contents?: true
Size: 522 Bytes
Versions: 33
Compression:
Stored size: 522 Bytes
Contents
# frozen_string_literal: true module GraphQL module Relay # Mostly an internal concern. # # Wraps an object as a `node`, and exposes a connection-specific `cursor`. class Edge < GraphQL::ObjectType attr_reader :node, :connection def initialize(node, connection) @node = node @connection = connection end def cursor @cursor ||= connection.cursor_from_node(node) end def parent @parent ||= connection.parent end end end end
Version data entries
33 entries across 33 versions & 1 rubygems