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
CollectionNamespaceThe collection namespace.
key
BsonDocumentThe key.
initial
BsonDocumentThe initial aggregation result for each group.
reduceFunction
BsonJavaScriptThe reduce function.
filter
BsonDocumentThe filter.
messageEncoderSettings
MessageEncoderSettingsThe 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
CollectionNamespaceThe collection namespace.
keyFunction
BsonJavaScriptThe key function.
initial
BsonDocumentThe initial aggregation result for each group.
reduceFunction
BsonJavaScriptThe reduce function.
filter
BsonDocumentThe filter.
messageEncoderSettings
MessageEncoderSettingsThe message encoder settings.