SERVER-138064ClosedFixed

Get types out of subpipeline in the dependency graph

canPathBeArrayFromFieldMetadata checks the subpipeline with getSubpipelineForPath.  We should reuse that logic for subpipeline checks and use it in getType too. We should also take this opportunity to make getConstant also check the subpipeline, such that the three metadata accessors (arrayness, type, constants) operate the same.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.