Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-11948

Docs for SERVER-35896: Support "replaceDocuments" mode in $out

    XMLWordPrintable

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.2
    • manual, Server
    • None

    Description

      ----------------------------

      Original Description

      Description:

      This mode for $out allows users to update documents in the output collection. The updates will use the following semantics:

      • match using the 'uniqueKey'
      • upsert: true
      • multi: false
      • replacement style

      Note that we do not guarantee an ordering of documents through the pipeline, and thus do not guarantee an ordering of the updates. This means that if the pipeline produces multiple documents with the same uniqueKey, the final resulting document is not guaranteed.

      Engineering Ticket Description:

      If an existing document already exists with the same unique key, the old document is replaced with the new one.

      ----------------------------

      Description

      Scope of changes (files that need work and how much)

      Impact to other docs outside of this product

      MVP (work and date?)

      Resources (e.g. Scope Docs, Invision)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kay.kim@mongodb.com Kay Kim (Inactive)
              Kay Kim Kay Kim (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                4 years, 7 weeks, 6 days ago