RETURN clause. You can return bindings (variables),
projected properties, aggregations, literals, or choose to return nothing at all.
Quick reference
| Return Type | Syntax | Return Type | Syntax | 
|---|---|---|---|
| Return a binding | RETURN users | Exclude fields | RETURN users::!{ email } | 
| Return multiple | RETURN user, posts | Aggregation/scalar | RETURN count | 
| Project fields | RETURN users::{ name, age }β | Literal | RETURN "ok" | 
| Only IDs | RETURN users::IDβ | No payload | RETURN NONE | 
When using the Python SDK, the output values are wrapped in an array for multiple query calls, so you will need to access the first element of the array to get the result of the first call.
Returning bindings
Return any previously bound value from your traversal.Returning projections and properties
Use property projection to shape the returned data.ID of each element:
RETURN using nested mappings:
Returning scalars and literals
Aggregations and scalar bindings can be returned directly:Returning nothing
For mutations or maintenance operations where you do not want a response payload, useRETURN NONE.
RETURN NONE signals that the query intentionally produces no output values. This is
handy to avoid sending placeholder strings like βsuccessβ when a silent acknowledgement
is preferred.