MergeStageWhenMatched Enumeration |
Namespace: MongoDB.Driver
Member name | Value | Description | |
---|---|---|---|
Replace | 0 | Replace the existing document in the output collection with the matching results document. | |
KeepExisting | 1 | Keep the existing document in the output collection. | |
Merge | 2 | Merge the matching documents (similar to the $mergeObjects operator). | |
Fail | 3 | Stop and fail the aggregation. Any changes to the output collection from previous documents are not reverted. | |
Pipeline | 4 | Use an aggregation pipeline to update the document in the collection. |
Copyright © 2010–present MongoDB Inc.