Table of Contents

Constructor GroupOperation

Namespace
MongoDB.Driver.Core.Operations
Assembly
MongoDB.Driver.Core.dll

GroupOperation(CollectionNamespace, BsonDocument, BsonDocument, BsonJavaScript, BsonDocument, MessageEncoderSettings)

Initializes a new instance of the GroupOperation<TResult> class.

public GroupOperation(CollectionNamespace collectionNamespace, BsonDocument key, BsonDocument initial, BsonJavaScript reduceFunction, BsonDocument filter, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

key BsonDocument

The key.

initial BsonDocument

The initial aggregation result for each group.

reduceFunction BsonJavaScript

The reduce function.

filter BsonDocument

The filter.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.

GroupOperation(CollectionNamespace, BsonJavaScript, BsonDocument, BsonJavaScript, BsonDocument, MessageEncoderSettings)

Initializes a new instance of the GroupOperation<TResult> class.

public GroupOperation(CollectionNamespace collectionNamespace, BsonJavaScript keyFunction, BsonDocument initial, BsonJavaScript reduceFunction, BsonDocument filter, MessageEncoderSettings messageEncoderSettings)

Parameters

collectionNamespace CollectionNamespace

The collection namespace.

keyFunction BsonJavaScript

The key function.

initial BsonDocument

The initial aggregation result for each group.

reduceFunction BsonJavaScript

The reduce function.

filter BsonDocument

The filter.

messageEncoderSettings MessageEncoderSettings

The message encoder settings.