Lead:
POCs:
Summary:
From the design document: We will extend the $out stage to have the following form:
{$out: {
mode: required, "replaceCollection" | "replaceDocuments" | "insertDocuments"
to: required, name of the collection
db: optional, defaults to the db of the aggregation
uniqueKey: optional document of fields that identifies a document for replacement or merge: see below
}
}
However, we will continue to accept the legacy syntax, which defaults to "replaceCollection" mode.
Relevant Spec Changes:
None.