How to get list of node properties with cypher in neo4j

I am trying to list all the properties for a set of nodes.

Match (n:"Indicator")
return properties(n), ID(n) 

I am not sure of the syntax and cannot find the answer in refcard or docs.

+8
source share
4 answers

In Neo4j version 3.0.0 you can:

Match (n:Indicator) return properties(n), ID(n) 

To return the identifier and properties of nodes.

+8
source

At the moment, you cannot do this with cypher, but it is on the top five in the idea panel.

+5
source
MATCH (n)
RETURN DISTINCT keys(n), size(keys(n))
ORDER BY size(keys(n)) DESC 
+2

Properties (n) , , , . :

MATCH (n:Indicator) return ID(n), keys(n), size(keys(n))

: neo4j

ID (n) size (keys (n)) , , , .

DISTINCT, , .

MATCH (n:Indicator) return DISTINCT ID(n), keys(n), size(keys(n))

, , .

MATCH (n:Indicator) return keys(n)

:

MATCH (n:Indicator) return DISTINCT keys(n)

: , Node (n)

0

Source: https://habr.com/ru/post/1536486/


All Articles