Skip to content

Instantly share code, notes, and snippets.

@howarddierking
Created October 2, 2013 04:43
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 howarddierking/6789238 to your computer and use it in GitHub Desktop.
Save howarddierking/6789238 to your computer and use it in GitHub Desktop.
cypher query that includes total count along with a limited set of results
start o=node(999)
match(o)-[:serves]->(i)
with count(distinct i) as total, o
match(o)-[:serves]->(i)
return distinct total, i.Industry limit 10;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment