MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)
WHERE 'Neo' IN r.roles AND m.title='The Matrix'
RETURN p.name
What I don't understand is where is the roles label in ACTED_IN. I tried looking for it by doing a Call db.schema.visualization() and this is what I get:
Be aware that APOC only sample the data, so if you need to be 100% sure, you will have to retrieve the properties for the labels and relation type you are interested in like that:
MATCH (p:Person)-[r:ACTED_IN]->(m:Movie)
RETURN DISTINCT keys(r) AS properties
I find myself nodding along as I read, appreciating the depth of your insights. This blog is a valuable resource, and I look forward to future posts. Jira Tutorial