Files
mongo/jstests/aggregation/sources/out/mode_insert_documents.js
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

4.8 KiB