-
Type:
Task
-
Resolution: Duplicate
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Quoting vesko.karaganev@mongodb.com from this thread:
For example if we have:
{$match: {x: number and not array}}
{$project: {'p.a': '$x'}}
Then for unknown 'p' once $project does the reshaping operation, the type of 'p' will be object or array.
And the method of traversing 'p.a' (where p might be array) would be unclear. $p.a as an ExpressionFieldPath will produce a number|array, but other logic might not, and the public API should be usable from any caller.
We might need to add a way for consumers of the public API to specify which path semantics they want.
- duplicates
-
SERVER-137672 Add DependencyGraph::getPathType API
-
- In Code Review
-