What may Ann read?
Query 1Follow group membership to any depth, then the read grant, then folder contents to any depth.
MATCH (u:User {name: 'ann'})-[:MEMBER_OF*]->(:Group)-[:CAN_READ]->(top)-[:CONTAINS*0..]->(item:Doc)
RETURN DISTINCT item.name AS readable ORDER BY readable;+----------------------+
| readable |
+----------------------+
| "/deploy/keys.txt" |
| "/deploy/runbook.md" |
| "/handbook.md" |
| "/src/main.rs" |
+----------------------+
4 rows