cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Cypher query question: How do I generate a table of all unwound property keys and property values for all nodes with the same label?

snellad1
Node Link

Hi,

I'd like to generate an exportable table of all property keys and their property values for all nodes with the same label.

For example I would like to unwind keys() , and then place the values of these in the next column.
Do I need to use extract? Reduce?

Many thanks.

1 REPLY 1

One way you could approach this is:

MATCH (l:Label)
UNWIND keys(l) as key
RETURN key,collect(distinct l[key])