1. Learn
  2. /
  3. Courses
  4. /
  5. Graph RAG with LangChain and Neo4j

Connected

Exercise

The MERGE clause

The MERGE clause will find or create a pattern in the database. It is good practice to split your MERGE statements into one clause per node or relationship.

Time to try out a MERGE query on your Neo4j database, graph.

Instructions

100 XP
  • Complete the Cypher statement to find or create Person and Course nodes with name and title properties, respectively, and joined by an ENROLLED_IN relationship.
  • Query graph using your own name and with the course title provided.