If I want a traditional table of properties from a node, I know I can do:
RETURN n.prop1, n.prop2, n.prop, etc.
What I'd like to do is something like: RETURN n.* to return all the property values (as a short hand).
I don't want RETURN n as it returns a Map, which is harder to for me to skim visually for patterns.
I've google what I want, and there are some close matches, but I haven't been able to find exactly what I want. I've also tried various permutations of UNWIND, keys() etc.
I realize this could be a mess if the nodes have radically dissimilar property names.... but my data is very regular. I'd be happy to use the keys() function on one node as the set of properties for all my nodes that I'm matching.
@clem, if you need to retrieve only the properties of a node; something like RETURN n.*, you can try with RETURN properties(n) and see if it will meet your need.
it will return the keys of the node associated with their values.
There is no PIVOT functionality in neo4j. As an alternate solution I have created a python function, that can take any node name (or all if NONE provided).