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