Using WHERE clause in the Node and Edge Selection
Select all comments that posted after 2025-01-01(), where the comment_date is greater than ‘2025-01-01’, storing identifiers in variable x. The second subpattern matches directional edges, captured by -[]->,that have an author label, and binding them to variable z. Finally, the third one matches any node, storing identifiers in y. Each of these subpatterns yields a set of paths, where a path is defined as an alternating sequence of nodes and edges, starting and ending with a node. In particular, edge patterns yield the edge’s identifier and include the connected nodes that form the path.