Skip to content

Instantly share code, notes, and snippets.

@freeeve
Created September 10, 2016 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save freeeve/73f33634865f7dd29fd100537c0916aa to your computer and use it in GitHub Desktop.
Save freeeve/73f33634865f7dd29fd100537c0916aa to your computer and use it in GitHub Desktop.
match (n)
with n, keys(n) as keys
limit 100000
unwind keys as key
with n, key
order by id(n), key
with n, collect(key) as keys
return distinct labels(n), keys, count(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment