Why does group return an empty result when no documents are matched?

XMLWordPrintableJSON

    • Type: Question
    • Resolution: Done
    • Priority: Minor - P4
    • None
    • Affects Version/s: 1.8.0-rc2
    • Component/s: MapReduce
    • None
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      The result for the "group" function is empty if the affected collection is empty or no documents match the condition. Shouldn't it return the value of the "initial" parameter as the result instead?

            Assignee:
            Unassigned
            Reporter:
            Martin Thierer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: