
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
-
Andreas Ronge October 5th, 2009 @ 10:41 PM
- State changed from new to resolved
(from [3536a1856756d2cc43a01b855af8eed5770f44d4]) Fixed appending (<<) on incoming relationships [#80 state:resolved] node1.relationships.incoming(:friends) << node2 did not work as expeced
http://github.com/andreasronge/neo4j/commit/3536a1856756d2cc43a01b8...
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.
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
-
80 n1.relationships.incoming(:foo) << n2 does not work as expected (from [3536a1856756d2cc43a01b855af8eed5770f44d4]) Fixed a...
-
204 :type for undefined value is ignored (from [8cd9ba5f766eb657150e4c8ba5295a244d6fd77d]) Merge p...