[DOCS-11948] Docs for SERVER-35896: Support "replaceDocuments" mode in $out Created: 07/Aug/18  Updated: 13/Nov/23  Resolved: 01/Oct/18

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: 4.1.2, Server_Docs_20231030, Server_Docs_20231106, Server_Docs_20231105, Server_Docs_20231113

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-35896 Support "replaceDocuments" mode in $out Closed
Related
related to DOCS-12028 New syntax for $out aggregation stage Closed
Participants:
Days since reply: 5 years, 27 weeks, 1 day ago
Epic Link: DOCS: 4.2 Server/Tools

 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)


Generated at Thu Feb 08 08:04:01 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.