README.md in redgraph-0.1.4 vs README.md in redgraph-0.2.0
- old
+ new
@@ -102,9 +102,17 @@
Actor.count
john = Actor.new(name: "John Travolta")
john.add_to_graph # Will add the node to the graph
john.add_relation(type: "ACTED_IN", node: film, properties: {role: "Tony Manero"})
+`NodeModel` models will automatically set a `_type` property to keep track of the object class.
+
+You will then be able to run custom queries such as:
+
+ Actor.query("MATCH (node) RETURN node ORDER BY node.name")
+
+And the result rows object will be instances of the classes defined by the `_type` attribute.
+
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run
TEST_REDIS_URL=YOUR-REDIS-URL rake test