namxam/architect4r — Issue #2: Allow referencing model roots in cypher queries to simplify using them
Author: namxam
Created: 2011-10-26 16:33:33+00:00
State: open

It would be great if one could reference a models root node in a cypher query, so we do not always have to fetch the id of that node by hand.

So instead of writing something like

```ruby
User.find_by_cyper("start s=node(#{User.model_root.id}) s-[:Friendship]-d return d", "d")
```

it should allow us to write

```ruby
User.find_by_cyper("start s=node(:user_root) s-[:Friendship]-d return d", "d")
```