Skip to content

how do I get the node or nodes related to a start node? #217

@angelacode

Description

@angelacode

I created the following:

n1 = Neography::Node.create n2 = Neography::Node.create new_rel = Neography::Relationship.create(:family, n1, n2)

My expectation is I should be able to list the relationships in n1 and from there return n2.

n1.outgoing from the documentation says I would # Get nodes related by outgoing relationships

n2 = n1.outgoing
n2.class

I expect the outcome to be a node.

Instead, I get #<Neography::NodeTraverser:

How do I get to the actual node 2?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions