Skip to content

Instantly share code, notes, and snippets.

@fadur
Created April 11, 2016 14:41
Show Gist options
  • Save fadur/355540149c8a6172653e9a1f2b7db412 to your computer and use it in GitHub Desktop.
Save fadur/355540149c8a6172653e9a1f2b7db412 to your computer and use it in GitHub Desktop.
match (s:Session)-[r:HAS_SEEN]->(p:Product)
where r.event_timestamp > (timestamp()/1000 - 60*60*24)
with s, p, r
return p.id as product, count(distinct r) as seen
order by seen limit 20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment