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

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

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

      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 Unassigned
            Reporter:
            thierer Martin Thierer
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: