Browse files

quick notes

  • Loading branch information...
1 parent 1eabac9 commit 6d44c90fe8cc8b5cade30a5cd8820063a87cf40a @pehrlich pehrlich committed Feb 2, 2012
Showing with 8 additions and 0 deletions.
  1. +8 −0 source/basic.textile
@@ -34,6 +34,8 @@ do
+Neo4j::Rails::Model#transaction is a convenient wrapper for this.
TIP: The Neo4j::Transaction returns a Java "org.neo4j.graph.Transaction": for more info see "Neo4j Transactions":
h3. Properties
@@ -97,6 +99,12 @@ node1.rel(:both, :best_friend) # => returns one relationship, nil or throws an
node1.rel(:incoming, :best_friend)
+Note that _rels takes different arguments from rels!
+ node1.rels(:both, :friends)
h3. Finding Relationships between two nodes
You can find all relationships between two nodes like this:

1 comment on commit 6d44c90


andreasronge commented on 6d44c90 Feb 2, 2012

Thanks. Maybe we should change so that _rels looks the same

Please sign in to comment.