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

$merge stage does not require "coll" field

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 5.1.0-rc0
    • None
    • None
    • Fully Compatible
    • ALL
    • Hide

      Run a $merge stage with the following form:

      {
        "$merge": {
          "into": {
            "db": "foo"
          }
        }
      }
      

      Outputs documents to the "foo." collection.

      Show
      Run a $merge stage with the following form: { "$merge" : { "into" : { "db" : "foo" } } } Outputs documents to the "foo." collection.
    • Query Optimization 2021-07-12

    Description

      When running a $merge stage with no "coll" specified, $merge does not return an error. However, this field should be required.

      Attachments

        Activity

          People

            alice.doherty@mongodb.com Alice Doherty
            alice.thum@mongodb.com Alice Thum
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: