Finding Emil

Hi - just evaluating Neo4J for our company - and thought I'd try the academy training. Didn't take long to gets stuck :(

As far as I can see Emil Eifrem didn't act in any movie. This query:
MATCH (p:Person)-[:ACTED_IN]->(m:Movie)
WHERE p:Person = 'Emil Eifrem'
RETURN m.title

returns no response.
Can someone give me a clue as to what I'm doing wrong?

Thanks!

Hi @sjoffe

You can search by property.
p:Person to p.name.

MATCH (p:Person)-[:ACTED_IN]->(m:Movie)
WHERE p.name = 'Emil Eifrem'
RETURN m.title

ah - perfect - many thanks @koji

1 Like

I'm still unable to get this to work. Emil appears to be an Actor and does not have any relationships to Movies.

Even the following query returns no results:

MATCH (p:Person)
WHERE p.name = "Emil Eifrem"
RETURN p

Hi @roswal

Are there 171 (Movie and Person) nodes?

@sjoffe, in the graph view of the browser, click the Emil Eifrem node. Then if you click the expand icon, you will be able to see all relationships from the Emil node.

Elaine