SERVER-137963In Code Review

Use field metadata from the dependency graph when producing type

getType should incorporate information from the field metadata: * canFieldBeArray (removes array) * knownToBeMissing (intersects missing) * hasConstant (gives the type) {$set: \{a: 1}} -> type int (hasConstant) {$project: \{a: 0}} -> type missing (knownToBeMissing)

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.