-
Type:
Improvement
-
Resolution: Unresolved
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query Optimization
-
None
-
None
-
None
-
None
-
None
-
None
-
None
The following should work:
[{$match: {$and: [{x: {$type: 'number'}},
{x: {$not: {$type: 'array'}}}]}},
{$set: {a: '$x'}}]
The type of 'x' is number. We should report that the type of 'a' is number too!