SERVER-137643Open

Support FieldPath and FieldRef paths in the type system

FieldRef is used for matchable paths. A $match can be on an field with an empty name such as \{$match: {"": 1}}.  FieldPath is the paths that a FieldPathExpression can reference. The path "$" is not valid. It is more restrictive and used in the pipeline module. canPathBeArray support both, since ExpressionContext is used for all queries. One overload currently converts FieldRef to FieldPath and calls the other with it. The schema type methods should also support both. The canPathBeArray

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.