Commit Graph

6 Commits

Author SHA1 Message Date
Anton Korshunov
fc6c65c0d4 SERVER-40429 Add merge stage to write output to existing collection 2019-05-02 17:03:31 +01:00
Kyle Suarez
b46de3f6c0 SERVER-36100 generate _id for $out uniqueKey if not present
If the _id field is part of the $out "uniqueKey" but is not present in
the document at the time of write, the $out stage will generate it
automatically.

We won't generate an _id if if isn't part of the "uniqueKey" so that
DocumentSourceOutInPlaceReplace won't use it as part of the update.
2018-08-30 10:45:29 -04:00
Kyle Suarez
15d627c3b7 SERVER-13201 support $out to foreign database
Allows $out to write to a database foreign to the aggregation namespace
when the mode is "insertDocuments" or "replaceDocuments"
2018-08-28 11:00:26 -04:00
Charlie Swanson
4422204cd2 SERVER-36424 Enforce uniqueKey is unique enough 2018-08-27 17:45:59 -04:00
Nick Zolnierz
2e69710b5b SERVER-35895: Add ability for $out to write to remote hosts 2018-08-08 09:49:15 -04:00
Nick Zolnierz
afbe688f0f SERVER-35896: Support 'replaceDocuments' mode in $out 2018-08-02 12:23:03 -04:00