Class IAggregateFluentExtensions

| MongoDB CSharp Driver API Reference (original) (raw)

Namespace

MongoDB.Driver

Assembly

MongoDB.Driver.dll

public static class IAggregateFluentExtensions

Inheritance

IAggregateFluentExtensions

Inherited Members

Methods

BucketAuto<TResult, TValue>(IAggregateFluent, Expression<Func<TResult, TValue>>, int, AggregateBucketAutoOptions)

Appends a $bucketAuto stage to the pipeline.

BucketAuto<TResult, TValue, TNewResult>(IAggregateFluent, Expression<Func<TResult, TValue>>, int, Expression<Func<IGrouping<AggregateBucketAutoResultId, TResult>, TNewResult>>, AggregateBucketAutoOptions)

Appends a $bucketAuto stage to the pipeline (this overload can only be used with LINQ3).

Bucket<TResult, TValue>(IAggregateFluent, Expression<Func<TResult, TValue>>, IEnumerable, AggregateBucketOptions)

Appends a $bucket stage to the pipeline.

Bucket<TResult, TValue, TNewResult>(IAggregateFluent, Expression<Func<TResult, TValue>>, IEnumerable, Expression<Func<IGrouping<TValue, TResult>, TNewResult>>, AggregateBucketOptions)

Appends a $bucket stage to the pipeline.

ChangeStreamSplitLargeEvent(IAggregateFluent<ChangeStreamDocument>)

Appends a $changeStreamSplitLargeEvent stage to the pipeline.

Densify(IAggregateFluent, Expression<Func<TResult, object>>, DensifyRange, IEnumerable<Expression<Func<TResult, object>>>)

Appends a $densify stage to the pipeline.

Densify(IAggregateFluent, Expression<Func<TResult, object>>, DensifyRange, params Expression<Func<TResult, object>>[])

Appends a $densify stage to the pipeline.

Documents(IAggregateFluent, AggregateExpressionDefinition<NoPipelineInput, IEnumerable>, IBsonSerializer)

Appends a $documents stage to the pipeline.

Documents(IAggregateFluent, IEnumerable, IBsonSerializer)

Appends a $documents stage to the pipeline.

Facet(IAggregateFluent, params AggregateFacet[])

Appends a $facet stage to the pipeline.

Facet(IAggregateFluent, IEnumerable<AggregateFacet>)

Appends a $facet stage to the pipeline.

Facet<TResult, TNewResult>(IAggregateFluent, params AggregateFacet[])

Appends a $facet stage to the pipeline.

FirstAsync(IAggregateFluent, CancellationToken)

Returns the first document of the aggregate result.

FirstOrDefaultAsync(IAggregateFluent, CancellationToken)

Returns the first document of the aggregate result, or the default value if the result set is empty.

FirstOrDefault(IAggregateFluent, CancellationToken)

Returns the first document of the aggregate result, or the default value if the result set is empty.

First(IAggregateFluent, CancellationToken)

Returns the first document of the aggregate result.

GeoNear<TResult, TNewResult>(IAggregateFluent, double[], GeoNearOptions<TResult, TNewResult>)

Appends a $geoNear stage to the pipeline.

GeoNear<TResult, TCoordinates, TNewResult>(IAggregateFluent, GeoJsonPoint, GeoNearOptions<TResult, TNewResult>)

Appends a $geoNear stage to the pipeline.

GraphLookup<TResult, TFrom>(IAggregateFluent, IMongoCollection, FieldDefinition<TFrom, BsonValue>, FieldDefinition<TFrom, BsonValue>, AggregateExpressionDefinition<TResult, BsonValue>, FieldDefinition<BsonDocument, IEnumerable>, FieldDefinition<BsonDocument, int>)

Appends a $graphLookup stage to the pipeline.

GraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TNewResult>(IAggregateFluent, IMongoCollection, FieldDefinition<TFrom, TConnectFrom>, FieldDefinition<TFrom, TConnectTo>, AggregateExpressionDefinition<TResult, TStartWith>, FieldDefinition<TNewResult, TAs>, AggregateGraphLookupOptions<TFrom, TFrom, TNewResult>)

Appends a $graphLookup stage to the pipeline.

GraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TNewResult>(IAggregateFluent, IMongoCollection, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TResult, TStartWith>>, Expression<Func<TNewResult, TAs>>, AggregateGraphLookupOptions<TFrom, TFrom, TNewResult>)

Appends a $graphLookup stage to the pipeline.

GraphLookup<TResult, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TNewResult>(IAggregateFluent, IMongoCollection, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TResult, TStartWith>>, Expression<Func<TNewResult, TAs>>, Expression<Func<TAsElement, int>>, AggregateGraphLookupOptions<TFrom, TAsElement, TNewResult>)

Appends a $graphLookup stage to the pipeline.

Group(IAggregateFluent, ProjectionDefinition<TResult, BsonDocument>)

Appends a group stage to the pipeline.

Group<TResult, TKey, TNewResult>(IAggregateFluent, Expression<Func<TResult, TKey>>, Expression<Func<IGrouping<TKey, TResult>, TNewResult>>)

Appends a group stage to the pipeline.

Lookup(IAggregateFluent, IMongoCollection, BsonDocument, PipelineDefinition<BsonDocument, BsonDocument>, FieldDefinition<BsonDocument, IEnumerable>)

Appends a lookup stage to the pipeline.

Lookup(IAggregateFluent, string, FieldDefinition, FieldDefinition, FieldDefinition)

Appends a lookup stage to the pipeline.

Lookup<TResult, TForeignDocument, TNewResult>(IAggregateFluent, IMongoCollection, Expression<Func<TResult, object>>, Expression<Func<TForeignDocument, object>>, Expression<Func<TNewResult, object>>, AggregateLookupOptions<TForeignDocument, TNewResult>)

Appends a lookup stage to the pipeline.

Lookup<TResult, TForeignDocument, TAsElement, TAs, TNewResult>(IAggregateFluent, IMongoCollection, BsonDocument, PipelineDefinition<TForeignDocument, TAsElement>, Expression<Func<TNewResult, TAs>>, AggregateLookupOptions<TForeignDocument, TNewResult>)

Appends a lookup stage to the pipeline.

Match(IAggregateFluent, Expression<Func<TResult, bool>>)

Appends a match stage to the pipeline.

Project(IAggregateFluent, ProjectionDefinition<TResult, BsonDocument>)

Appends a project stage to the pipeline.

Project<TResult, TNewResult>(IAggregateFluent, Expression<Func<TResult, TNewResult>>)

Appends a project stage to the pipeline.

RankFusion<TResult, TNewResult>(IAggregateFluent, PipelineDefinition<TResult, TNewResult>[], RankFusionOptions)

Appends a $rankFusion stage to the pipeline. Pipelines will be automatically named as "pipeline1", "pipeline2", etc.

RankFusion<TResult, TNewResult>(IAggregateFluent, Dictionary<string, PipelineDefinition<TResult, TNewResult>>, Dictionary<string, double>, RankFusionOptions)

Appends a $rankFusion stage to the pipeline.

RankFusion<TResult, TNewResult>(IAggregateFluent, (PipelineDefinition<TResult, TNewResult>, double?)[], RankFusionOptions)

Appends a $rankFusion stage to the pipeline. Pipelines will be automatically named as "pipeline1", "pipeline2", etc.

ReplaceRoot<TResult, TNewResult>(IAggregateFluent, Expression<Func<TResult, TNewResult>>)

Appends a $replaceRoot stage to the pipeline.

ReplaceWith<TResult, TNewResult>(IAggregateFluent, Expression<Func<TResult, TNewResult>>)

Appends a $replaceWith stage to the pipeline.

SetWindowFields<TResult, TWindowFields>(IAggregateFluent, Expression<Func<ISetWindowFieldsPartition, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent, Expression<Func<TResult, TPartitionBy>>, SortDefinition, Expression<Func<ISetWindowFieldsPartition, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

SetWindowFields<TResult, TPartitionBy, TWindowFields>(IAggregateFluent, Expression<Func<TResult, TPartitionBy>>, Expression<Func<ISetWindowFieldsPartition, TWindowFields>>)

Appends a $setWindowFields to the pipeline.

Set<TResult, TFields>(IAggregateFluent, Expression<Func<TResult, TFields>>)

Appends a $set stage to the pipeline.

SingleAsync(IAggregateFluent, CancellationToken)

Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.

SingleOrDefaultAsync(IAggregateFluent, CancellationToken)

Returns the only document of the aggregate result, or the default value if the result set is empty. Throws an exception if the result set contains more than one document.

SingleOrDefault(IAggregateFluent, CancellationToken)

Returns the only document of the aggregate result, or the default value if the result set is empty. Throws an exception if the result set contains more than one document.

Single(IAggregateFluent, CancellationToken)

Returns the only document of the aggregate result. Throws an exception if the result set does not contain exactly one document.

SortByCount<TResult, TKey>(IAggregateFluent, Expression<Func<TResult, TKey>>)

Appends a sortByCount stage to the pipeline.

SortByDescending(IAggregateFluent, Expression<Func<TResult, object>>)

Appends a descending sort stage to the pipeline.

SortBy(IAggregateFluent, Expression<Func<TResult, object>>)

Appends an ascending sort stage to the pipeline.

ThenByDescending(IOrderedAggregateFluent, Expression<Func<TResult, object>>)

Modifies the current sort stage by appending a descending field specification to it.

ThenBy(IOrderedAggregateFluent, Expression<Func<TResult, object>>)

Modifies the current sort stage by appending an ascending field specification to it.

Unwind(IAggregateFluent, FieldDefinition)

Appends an unwind stage to the pipeline.

Unwind(IAggregateFluent, Expression<Func<TResult, object>>)

Appends an unwind stage to the pipeline.

Unwind<TResult, TNewResult>(IAggregateFluent, Expression<Func<TResult, object>>, IBsonSerializer)

Appends an unwind stage to the pipeline.

Unwind<TResult, TNewResult>(IAggregateFluent, Expression<Func<TResult, object>>, AggregateUnwindOptions)

Appends an unwind stage to the pipeline.

VectorSearch(IAggregateFluent, Expression<Func<TResult, object>>, QueryVector, int, VectorSearchOptions)

Appends a $vectorSearch stage.