class GraphQL::Pagination::Connection::Edge
and could be extended with custom relationship-level data.
A wrapper around paginated items. It includes a {cursor} for pagination
def cursor
def cursor @cursor ||= @connection.cursor_for(@node) end
def initialize(node, connection)
def initialize(node, connection) @connection = connection @node = node end
def parent
def parent @connection.parent end
def was_authorized_by_scope_items?
def was_authorized_by_scope_items? @connection.was_authorized_by_scope_items? end