-
Type: New Feature
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Aggregation Framework
-
Labels:None
There are many functions which are not currently available in $project. For example, quite a few people are asking for string.indexOf("target") functionality, so that the result can be used in $substr command.
Instead of adding each of the functions, simply allow invoking any JavaScript function in the process of creating a $project field. Also, it would be nice to write a closure and invoke it. This way multi-step operations could also be performed.