Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
neo4j knowledge base template

How is X done

To display the nodes with the most properties defined, run the following Cypher Statement:

Example Cypher Query
RETURN labels(n), keys(n), size(keys(n)), count(*)
ORDER BY size(keys(n)) DESC

Sample Sub-Header

Representative output is similar to:

labels(n) keys(n) size(keys(n)) count(*)


[TotalRevenue, year_of_release, name, id]


1 …​

The first row of output indicates that there is a Label named Movie, which has 4 properties (TotalRevenue, year_of_release, name, id) and there is 1 node defined with that Label and those properties.

See also this sample image

Neo4j knowledge base example article
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment