Table of Contents

Method Reduce

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Reduce(string, string, bool?, bool?)

A reduce map-reduce output options.

[Obsolete("Use an overload of Reduce that does not have sharded and nonAtomic parameters instead.")]
public static MapReduceOutputOptions Reduce(string collectionName, string databaseName = null, bool? sharded = null, bool? nonAtomic = null)

Parameters

collectionName string

The name of the collection.

databaseName string

The name of the database.

sharded bool?

Whether the output collection should be sharded.

nonAtomic bool?

Whether the server should not lock the database for the duration of the reduce.

Returns

MapReduceOutputOptions

A reduce map-reduce output options.

Reduce(string, string)

A reduce map-reduce output options.

public static MapReduceOutputOptions Reduce(string collectionName, string databaseName)

Parameters

collectionName string

The name of the collection.

databaseName string

The name of the database.

Returns

MapReduceOutputOptions

A reduce map-reduce output options.