It creates data. Pairs of people are sent in as a parameter list
For each pair each person is created (merged by name) and then connected. > Am 22.05.2016 um 23:11 schrieb Andy <borucki.andr...@gmail.com>: > > From neo4j.com/developer ? > I am neo4j beginner. > First , we have: > String insertQuery = "UNWIND {pairs} as pair " + > "MERGE (p1:Person {name:pair[0]}) " + > "MERGE (p2:Person {name:pair[1]}) " + > "MERGE (p1)-[:KNOWS]-(p2);"; > where pair is list of lists. > What is doing in this query? > > -- > You received this message because you are subscribed to the Google Groups > "Neo4j" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to neo4j+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Neo4j" group. To unsubscribe from this group and stop receiving emails from it, send an email to neo4j+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.