Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
angelacode opened this issue Apr 22, 2017 · 1 comment
Open

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

angelacode opened this issue Apr 22, 2017 · 1 comment

Comments

@angelacode
Copy link

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?

@angelacode
Copy link
Author

How do I get the actual relationships, it's not behaving as expected since I cannot get the "types":

http://stackoverflow.com/questions/43624904/how-do-i-use-neography-to-find-the-relationship-type-and-nodes-for-a-given-node

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant