Starting from a map map
in cypher, I can get the keys via keys(map)
, but it seems there is no values
analogon, also APOC doesn't seem to have a suitable procedure.
edit: using newest neo4j and apoc versions
Did I miss anything?
The List Comprehension syntax can produce a list of map values fairly succinctly:
[k IN KEYS(map) | map[k]]
As a workaround, you can use this solution using reduce() and keys() functions:
match(node)
with reduce(values = [], key in keys(node) | values + node[key]) as values
return values
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With