I need to run a query where I retrieve only the vertices that exist in multiple subtrees in a polytree, but I can’t quite work out the syntax to perform it.
e.g. I have objects with out edges to folders in a hierarchy, and another edge to an employee vertex. I want to be able to retrieve all objects from a folder and its subfolders, but only if they also belong to a particular team, with multiple employees in the team.
So I need to be able to traverse both the folder hierarchy, and the team tree, and find the objects that are common to both.
Any help would be appreciated.