Permalink
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
View
@@ -34,6 +34,8 @@ Neo4j::Transaction.run do
end
</ruby>
+Neo4j::Rails::Model#transaction is a convenient wrapper for this.
+
TIP: The Neo4j::Transaction returns a Java "org.neo4j.graph.Transaction":http://api.neo4j.org/current/org/neo4j/graphdb/Transaction.html for more info see "Neo4j Transactions":http://wiki.neo4j.org/content/Transactions
h3. Properties
@@ -97,6 +99,12 @@ node1.rel(:both, :best_friend) # => returns one relationship, nil or throws an
node1.rel(:incoming, :best_friend)
</ruby>
+Note that _rels takes different arguments from rels!
+
+<ruby>
+ node1.rels(:both, :friends)
+</ruby>
+
h3. Finding Relationships between two nodes
You can find all relationships between two nodes like this:

1 comment on commit 6d44c90

Owner

andreasronge commented on 6d44c90 Feb 2, 2012

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

Please sign in to comment.