SERVER-137373ClosedFixed

Use the collection schema inferred type in the dependency graph

The DependencyGraph should have access to the inferred Type instance. This ticket involves updating the DependencyGraph constructors to accept a callback which can lazily request the Type. When the schema type is accessed, the ExpCtx marks it as used. A callback allows us to write the graph code such that we only access the schema type when we need it's type information.

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.