The behavior of $merge
if a result document and an existing document in the collection have the same value for the specified on
field(s).
The behavior of $merge
if a result document does not match an existing document in the out collection.
(Since version ) see corresponding Javadoc for more information.
Options to control the behavior of the
$merge
aggregation stage2.7