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

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

    XMLWordPrintableJSON

Details

    • Icon: Question Question
    • Resolution: Done
    • Icon: Minor - P4 Minor - P4
    • None
    • 1.8.0-rc2
    • MapReduce
    • None
    • 0

    Description

      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?

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: