Skip to content

Instantly share code, notes, and snippets.

@ikwattro
Forked from jexp/how-is-x-done.adoc
Created July 3, 2016 22:23
Show Gist options
  • Save ikwattro/499c95a6013a7f200ab2fe31803eb4ab to your computer and use it in GitHub Desktop.
Save ikwattro/499c95a6013a7f200ab2fe31803eb4ab to your computer and use it in GitHub Desktop.
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