activegraph
https://github.com/neo4jrb/activegraph
Ruby
An active model wrapper for the Neo4j Graph Database for Ruby.
Neo4j::ActiveNode::Query::QueryProxyMethods#first_rel_to
Gives you the first relationship between the last link of a QueryProxy chain and a given node
Shorthand for `MATCH (start)-[r]-(other_node) WHERE ID(other_node) = #{other_node.neo_id} RETURN r`Edit
git clone [email protected]:neo4jrb/activegraph.git
cd activegraph
open
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Neo4j--ActiveNode--Query--QueryProxyMethods-first_rel_to-for-pr
# Commit to gitgit add git commit -m "better docs for Neo4j::ActiveNode::Query::QueryProxyMethods#first_rel_to"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Neo4j--ActiveNode--Query--QueryProxyMethods-first_rel_to-for-pr
hub pull-request
# Celebrate!