Neo4j – Unwind Clause The unwind clause is used to unwind a list into a sequence of rows. Example Following is a sample Cypher Query which unwinds a list. UNWIND [a, b, c, d] AS x RETURN x To execute the above query, carry out the following steps − Step 1 − Open the Neo4j […]
Category Archives: neo4j
Neo4j – With Clause You can chain the query arts together using the WITH clause. Syntax Following is the syntax of the WITH clause. MATCH (n) WITH n ORDER BY n.property RETURN collect(n.property) Example Following is a sample Cypher Query which demonstrates the usage of the WITH clause. MATCH (n) WITH n ORDER BY n.name […]
Neo4j – Skip Clause The SKIP clause is used to define from which row to start including the rows in the output. Example Before proceeding with the example, create 5 nodes as shown below. CREATE(Dhawan:player{name:”shikar Dhawan”, YOB: 1985, runs:363, country: “India”}) CREATE(Jonathan:player{name:”Jonathan Trott”, YOB:1981, runs:229, country:”South Africa”}) CREATE(Sangakkara:player{name:”Kumar Sangakkara”, YOB:1977, runs:222, country:”Srilanka”}) CREATE(Rohit:player{name:”Rohit Sharma”, YOB: […]