4.2 · Lesson

Creating Movie Actors

You now know how to add a Movie Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. to the database. But what if you also want to add the actors who acted in the movie? You can do this by passing a little more data to the save() method.

You can include information for saving Full definition for relationship (opens in a new tab)A named, directed connection between two nodes. Every relationship has a type, a start node and an end node. to the JSON file and pass it to the save() method without any additional code changes.