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

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

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

      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)

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

              Created:
              Updated:
              Resolved:
              5 years, 37 weeks, 2 days ago