Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-17684

Allow invocation of JavaScript functions/closures from $project

    • Type: Icon: New Feature New Feature
    • Resolution: Won't Fix
    • Priority: Icon: Major - P3 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.

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

              Created:
              Updated:
              Resolved: