4.1 · Lesson

Creating Movie nodes

You have learned in previous lessons how to read Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. and 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. from the database. Now you will learn how to write them to the database by using the save() method to create a new node in Neo4j.

If you remember from an earlier lesson, Spring Data has some derived methods that are provided out-of-the-box. One of those is the save() method for saving data to a database. You will use this method to create new nodes in Neo4j.