allow $addFields with empty document and have it be a no-op

XMLWordPrintableJSON

    • Fully Compatible
    • v4.4, v4.2, v4.0
    • Query 2020-10-19, Query 2020-11-02, Query 2020-11-16
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      For programatic populating of $addFields (in update pipeline for instance) it would help if (becoming consistent with SERVER-38909) we would allow empty document rather than error "Invalid $addFields :: caused by :: specification must have at least one field"

              Assignee:
              Betty Shen (Inactive)
              Reporter:
              Asya Kamsky
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: