Google News
logo
Neo4J - Interview Questions
Explain the structure of Neo4J query language with an example.
Matching patterns is easy while working with nodes using Neo4J.
Example : To get cast of actors starting with S
MATCH (actor:Person)-[:ACTED_IN]->(movie:Movie)
WHERE movie.title STARTS WITH "S"
RETURN movie.title AS title, collect(actor.name) AS cast
ORDER BY title ASC LIMIT 10;
Advertisement