Returning and Shaping Results with RETURN
Master the Cypher RETURN clause to project, alias, and shape the output of your graph queries.
What RETURN Does
Every read query that produces output ends with a RETURN clause. It defines exactly which values come back to you.
Think of RETURN as the projection step of your query.
MATCH (p:Person)
RETURN p;Returning Specific Properties
Instead of whole nodes, you can return individual properties using dot notation. This keeps results lean.
MATCH (p:Person)
RETURN p.name, p.age;All lessons in this course
- Nodes, Relationships, and Properties
- Creating Data with Cypher CREATE
- Matching Patterns with Cypher MATCH
- Returning and Shaping Results with RETURN