Skip to content

Instantly share code, notes, and snippets.

@vortec
Created December 28, 2016 11:45
Show Gist options
  • Save vortec/1233ad776f88f3c1c6e7dec26ea7b8d5 to your computer and use it in GitHub Desktop.
Save vortec/1233ad776f88f3c1c6e7dec26ea7b8d5 to your computer and use it in GitHub Desktop.
MATCH (root:RootObject), (u {name: 'Tom'})-[:HAS_PERMISSION]->(o),
p = shortestPath((root)-[*]-(o)) WHERE (r IN rels(p) WHERE type(r) = 'CONTAINS')
RETURN p
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment