Skip to content

Instantly share code, notes, and snippets.

@MarneeDear
Last active August 29, 2015 14:20
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 MarneeDear/5a9ff0c9185f1dbfa9f7 to your computer and use it in GitHub Desktop.
Save MarneeDear/5a9ff0c9185f1dbfa9f7 to your computer and use it in GitHub Desktop.
Find CQs for a date
Find CQs for a date
match (d:Day {day:1})<-[on:ON]-(cq:CQ)<-[s:SENT]-(u:USER)
return d, on, cq, s, u
Get the full calendar graph
match (calendar)-[:YEAR]->(y)-[:MONTH]->(m)-[:DAY]->(d:Day {day:1})<-[on:ON]-(cq:CQ)<-[s:SENT]-(u:USER)
return u, s, cq, on, d, m, y, calendar
match (calendar)-[:YEAR]->(y)-[:MONTH]->(m)-[:DAY]->(d:Day)<-[on:ON]-(cq:CQ)<-[s:SENT]-(u:USER)
return u, s, cq, on, d, m, y, calendar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment