foo = Dish.where("result.foo_id = #{foo_id}")
bah = Patron.where("result.bah_id = #{bah_id}")
rel = Rating.create(from_node: foo, to_node: bah, value: 1)
This give me an "RelInvalidError - from_node and to_node must be node objects" . I saw the error in the issues list but it looks like it has been fixed .
Using neo4j-core 3.0.3
Using neo4j 3.0.2
What am I doing wrong ?
John
--
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+u...@googlegroups.com.
To post to this group, send email to neo...@googlegroups.com.
Visit this group at http://groups.google.com/group/neo4jrb.
For more options, visit https://groups.google.com/d/optout.
If you're doing exactly what you demonstrated, call `first` on both of those variables -- they return enumerables. Alternatively, use `find_by`.
On Tuesday, November 11, 2014, John Clegg <jo...@projectx.co.nz> wrote:
Hi--I'm getting "RelInvalidError - from_node and to_node must be node objects" when I'm trying to create a relationship.foo = Dish.where("result.foo_id = #{foo_id}")
bah = Patron.where("result.bah_id = #{bah_id}")
rel = Rating.create(from_node: foo, to_node: bah, value: 1)
This give me an "RelInvalidError - from_node and to_node must be node objects" . I saw the error in the issues list but it looks like it has been fixed .
Using neo4j-core 3.0.3
Using neo4j 3.0.2
What am I doing wrong ?
John
You received this message because you are subscribed to the Google Groups "neo4jrb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+unsubscribe@googlegroups.com.
To unsubscribe from this group and stop receiving emails from it, send an email to neo4jrb+u...@googlegroups.com.