What you can return from a query using RETURN.
RETURN
clause. You can return bindings (variables),
projected properties, aggregations, literals, or choose to return nothing at all.
JSON Output (shape)
ID
of each element:
RETURN
using nested mappings:
steps/properties/property-access.mdx
steps/properties/property-remappings.mdx
steps/properties/property-exclusion.mdx
RETURN NONE
RETURN 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.
RETURN users
RETURN user, posts
RETURN users::{ name, age }
RETURN users::ID
RETURN users::!{ email }
RETURN count
RETURN "ok"
RETURN NONE