Building Web Applications with Python and Neo4j by Sumit Gupta

() WITH y, count(*) AS cnt WHERE cnt> 1 RETURN y; [ 37 ] Querying the Graph with Cypher Executing the preceding statement on the Neo4j console will produce results similar to the one shown in the following illustration: The preceding screenshot shows the usage of the WITH clause with the MATCH statement. The preceding query first provides all the nodes that are connected to the x node (having the name property "Bradley") with an outgoing relationship.

Download PDF sample

Rated 4.14 of 5 – based on 24 votes