Table of Contents

Class GroupOperation<TResult>

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

Represents a group operation.

[Obsolete("This class will be made internal in a later release.")]
public class GroupOperation<TResult> : IReadOperation<IEnumerable<TResult>>

Type Parameters

TResult

The type of the result.

Inheritance
GroupOperation<TResult>
Implements
Inherited Members
Extension Methods

Constructors

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

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

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

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

Properties

Collation

Gets or sets the collation.

CollectionNamespace

Gets the collection namespace.

Filter

Gets the filter.

FinalizeFunction

Gets or sets the finalize function.

Initial

Gets the initial aggregation result for each group.

Key

Gets the key.

KeyFunction

Gets the key function.

MaxTime

Gets or sets the maximum time the server should spend on this operation.

MessageEncoderSettings

Gets the message encoder settings.

ReduceFunction

Gets the reduce function.

ResultSerializer

Gets or sets the result serializer.

Methods

Execute(IReadBinding, CancellationToken)

Executes the operation.

ExecuteAsync(IReadBinding, CancellationToken)

Executes the operation.