Allow invocation of JavaScript functions/closures from $project

XMLWordPrintableJSON

    • Type: New Feature
    • Resolution: Won't Fix
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Aggregation Framework
    • None
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • 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.

              Assignee:
              Unassigned
              Reporter:
              Alex Paransky
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

                Created:
                Updated:
                Resolved: