cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

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!

5 REPLIES 5

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

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