5.3 · Challenge

Challenge: Create Custom Cypher for Write

You have learned how to create, read, and delete Full definition for node (opens in a new tab)A vertex in a graph. In a property graph it can carry labels and properties. in the Neo4j database (the C, R, and D in the popular CRUD acronym). The only part of the puzzle left is to update (U) nodes in the database.

Your challenge is to create a custom method in the repository interface using the @Query annotation with a provided Full definition for Cypher (opens in a new tab)Neo4j's implementation of GQL, the ISO standard query language for graph databases. It is declarative: you describe the pattern to find, and the database decides how to find it. statement that writes an update to the database. Once you have created the method and query, you will need to test the application and verify the results.