

| MergeStageWhenNotMatched Enumeration | 
Namespace: MongoDB.Driver
 Syntax
Syntax Members
Members| Member name | Value | Description | |
|---|---|---|---|
| Insert | 0 | Insert the document into the output collection. | |
| Discard | 1 | Discard the document; i.e. $merge does not insert the document into the output collection. | |
| Fail | 2 | Stop and fail the aggregation operation. Any changes to the output collection from previous documents are not reverted. | 
 See Also
See AlsoCopyright © 2010–present MongoDB Inc.