Click or drag to resize

MapReduceOutputMode Enumeration

Note: This API is now obsolete.

Represents the map-reduce output mode.

Namespace:  MongoDB.Driver.Core.Operations
Assembly:  MongoDB.Driver.Core (in MongoDB.Driver.Core.dll) Version: 2.18.0+554c799eb1ec8dd732f16c739387f6664df1ba7a
Syntax
[ObsoleteAttribute("Use Aggregation pipeline instead.")]
public enum MapReduceOutputMode
Members
  Member nameValueDescription
Replace0 The output of the map-reduce operation replaces the output collection.
Merge1 The output of the map-reduce operation is merged with the output collection. If an existing document has the same key as the new result, overwrite the existing document.
Reduce2 The output of the map-reduce operation is merged with the output collection. If an existing document has the same key as the new result, apply the reduce function to both the new and the existing documents and overwrite the existing document with the result.
See Also