Created
November 4, 2019 15:27
-
-
Save vladbatushkov/51caf9f5100717b27375d5ac42034858 to your computer and use it in GitHub Desktop.
Queries to observe Organization structure
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MATCH (o:Organization)-[:CONTAINS]->(d:Department) | |
RETURN * | |
MATCH (p:Person)-[:WORK_FOR]->(o:Organization) | |
RETURN * | |
MATCH (o:Organization)-[:CONTAINS]->(d:Department)-[:LEAD_BY]->(p:Person) | |
RETURN d, p | |
MATCH (p:Project)-[:OWNED_BY]->(d:Department) | |
RETURN d, p | |
MATCH (p:Person)-[dd:DEDICATED_TO]->(pr:Project) | |
WHERE dd.role IS NOT NULL | |
RETURN p.name as person, pr.name as project, dd.role as role |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment