Anybody who can help me check the answer for the section in the course of neo4j Graph Academy:
Below is my answer:
MATCH (m:Movie)
UNWIND m.genres AS genre
WITH genre, collect(m) AS movies
MERGE (g:genre {name:genre})
WITH g, movies
UNWIND movies AS m
WITH g,m
MERGE (m)-[:IN_GENRE]->(g);
MATCH (m:Movie)
SET m.genres=null
I have checked the result that genre node has already been created, as the pic show
but when I click the "Check Database" button, I receive the " Oops! It looks like you haven't passed the test......." message
Anybody who can help me, thank you soooo much!!!