SERVER-135797ClosedWon't Do
Consider $match stages on subpaths and siblings of the given path in DependencyGraph::getType()
See test case GetTypeSkipsMatchesOnSubpathsAndSiblings. The problem is that individual (nested) field component nodes don't see their parent nodes.