CHALLENGE Add labels to the graph

Hi Pedro,

Sorry you are experiencing problems.

Fyi - GraphAcademy is Cypher using the following script to verify that the lesson has been completed.

MATCH (a:Actor) with count(a) as numActors
MATCH (d:Director) with numActors, count(d) as numDirectors
return numActors + numDirectors = 450 as outcome

It is specifically looking for the correct number of Actor and Director labels on nodes in the graph.

If the data has been imported correctly when you run these 2 queries:

MATCH (p:Person)-[:ACTED_IN]->()
WITH DISTINCT p SET p:Actor
MATCH (p:Person)-[:DIRECTED]->()
WITH DISTINCT p SET p:Director

They should add 353 actor labels and 97 director labels making a total of 450 labels.

Have you run these queries to add the labels?

Martin