SERVER-136153ClosedFixed

Unify canPathBeArray handling in the graph to use type information

We have a few divergent code paths which are used to determine if a field in question is array. The public canPathBeArray method on the graph is the most complete implementation. But internally, when building the graph, we use different more limited checks. For example, in a rename \{$set: {a: '$b.c'}}, if 'b.c' is a constant, we will not apply the walkConstant logic if 'b' has a constant value. Whereas if we query "b.c" using the public API we will. After we unify the code, the followi

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.