Click or drag to resize

MergeStageWhenNotMatched Enumeration

The behavior of $merge if a result document does not match an existing document in the output collection.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public enum MergeStageWhenNotMatched
Members
  Member nameValueDescription
Insert0 Insert the document into the output collection.
Discard1 Discard the document; i.e. $merge does not insert the document into the output collection.
Fail2 Stop and fail the aggregation operation. Any changes to the output collection from previous documents are not reverted.
See Also