SERVER-135981ClosedFixed

Implement expression::narrowPath

Similar to matcher::narrowPath (SERVER-134593, SERVER-135339, SERVER-134936), but for aggregation pipelines! It should accept the PathSemantics defined in SERVER-135978.  And will produce a Type derived from inputType which is narrowed by the constraint type. We will only implement PathSemantics::kFieldPath, but we should support dotted paths! Examples: * {a: any, b: any}with path 'a' with constraint number produces \{a: number, b: any} * {a: any, b: any}with path 'a.b' with co

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.