Skip to content

Instantly share code, notes, and snippets.

@jexp
Created June 28, 2016 10:01
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
MATCH (n)
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(*)

[Movie]

[TotalRevenue, year_of_release, name, id]

4

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