How do we pass the arguments for the relationship properties in neo4j.rb?

13 Views Asked by At

Neo4j.rb project. From the docs.

student = Student.first
lesson = Lesson.new
student.lessons << lesson

How do we pass the arguments for the relationship properties for the relationship between student and lesson?

1

There are 1 best solutions below

0
Sanjay Singh On

OK. It's not in the docs but in screencasts

student.lessons.create(lesson, enrolment_date: "blah")