Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
03-04-2021 10:22 AM
I am running two queries which I believe to be identical in the task they are performing. I am working on exercise 12.4, which you can gain access to by running this :play 4.0-intro-neo4j-exercises
I am running this query which produces the desired results of retrieving labels Movie and Production
MATCH (m)
WHERE m.title = 'Forrest Gump'
RETURN labels(m)
but when I run this query
Match (m:Movie {title: 'Forrest Gump'})
RETURN labels(m)
I only receive the Movie label. Are the two queries above not the same? Why am I getting different results?
Solved! Go to Solution.
03-04-2021 10:33 AM
On the 2nd query you have :Movie
which means that it will only find nodes that have the Movie
label. If you remove that bit it'll be the same as the top query
03-04-2021 10:33 AM
On the 2nd query you have :Movie
which means that it will only find nodes that have the Movie
label. If you remove that bit it'll be the same as the top query
All the sessions of the conference are now available online