Calmcode - neo4j: visualisation

Visualisation

1 2 3 4 5 6 7 8 9 10

Let's figure out which projects depend on tqdm.

MATCH (n1:Project {name: "tqdm"})-->(n2:Project)
RETURN *

Alternatively we could rewrite this query to be slightly more specific. We can add a type to the edge, for example.

MATCH (n1:Project {name: "tqdm"})-[:Dependency]->(n2:Project)
RETURN *

We can also introduce a variable to refer to a match.

MATCH path = (n1:Project {name: "tqdm"})-->(n2:Project)
RETURN path

Note

Another method, which isn't discussed in the video, is to use a WHERE-statement.

MATCH path = (n1:Project)-->(n2:Project)
WHERE n1.name = "tqdm"
RETURN path