Changeset [bb2b9cddccf87abbad91acc9495389be758703fa] by Andreas Ronge

June 7th, 2014 @ 05:41 PM

Fixed relationship queries so that it traverse the correct direction.

Example: Person.all(conditions: {best_friend: me}) should only return all people having me as best friend, but not including me.
Also make sure condition query only uses has_one declared relationships.
https://github.com/andreasronge/neo4j/commit/bb2b9cddccf87abbad91ac...

Committed by Andreas Ronge

  • A spec/e2e/queries_spec.rb
  • M lib/neo4j/active_node/has_n.rb
  • M lib/neo4j/active_node/labels.rb
  • M neo4j.gemspec
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