#80 ✓resolved
Andreas Ronge

n1.relationships.incoming(:foo) << n2 does not work as expected

Reported by Andreas Ronge | September 30th, 2009 @ 11:19 PM | in 0.3.3

Appending nodes using the << operator on relationships only works for outgoing nodes.
Should also work for incoming nodes.

  n1 = Neo4j::Node.new
  n2 = Neo4j::Node.new

  # when
  n1.relationships.incoming(:foo) << n2

  # then
  n1.relationships.incoming.nodes.should include(n2)
  n2.relationships.outgongi.nodes.should include(n1)

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Neo4j.rb is a graph database framework for JRuby.

It provides:

* Mapping of ruby objects to nodes in networks rather than in tables.
* Storage of ruby object to a file system.
* Fast traversal of relationships between nodes in a hugh node space.
* Transaction with rollbacks support.
* Indexing and quering of ruby objects.
* Integration with Rails

People watching this ticket

Tags

Referenced by

Pages