Sha256: c8394d4f077c4a93298d0596fa97a09c5586b6d1c5d9fad6bf77f953f549895e
Contents?: true
Size: 492 Bytes
Versions: 32
Compression:
Stored size: 492 Bytes
Contents
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
32 entries across 32 versions & 2 rubygems