Table of Contents

Method Aggregate

Namespace
MongoDB.Driver
Assembly
MongoDB.Driver.dll

Aggregate(IMongoDatabase, AggregateOptions)

Begins a fluent aggregation interface.

public static IAggregateFluent<NoPipelineInput> Aggregate(this IMongoDatabase database, AggregateOptions options = null)

Parameters

database IMongoDatabase

The database.

options AggregateOptions

The options.

Returns

IAggregateFluent<NoPipelineInput>

A fluent aggregate interface.

Aggregate(IMongoDatabase, IClientSessionHandle, AggregateOptions)

Begins a fluent aggregation interface.

public static IAggregateFluent<NoPipelineInput> Aggregate(this IMongoDatabase database, IClientSessionHandle session, AggregateOptions options = null)

Parameters

database IMongoDatabase

The database.

session IClientSessionHandle

The session.

options AggregateOptions

The options.

Returns

IAggregateFluent<NoPipelineInput>

A fluent aggregate interface.