Class AggregateFluentBase
| MongoDB CSharp Driver API Reference (original) (raw)
Namespace
Assembly
MongoDB.Driver.dll
public abstract class AggregateFluentBase<TResult> : IOrderedAggregateFluent<TResult>, IAggregateFluent<TResult>, IAsyncCursorSource<TResult>Type Parameters
TResult
The type of the document.
Inheritance
AggregateFluentBase
Implements
Inherited Members
Extension Methods
Properties
Gets the database.
Gets the options.
Gets the stages.
Methods
AppendStage(PipelineStageDefinition<TResult, TNewResult>)
Appends the stage to the pipeline.
Changes the result type of the pipeline.
BucketAuto(AggregateExpressionDefinition<TResult, TValue>, int, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Appends a $bucketAuto stage to the pipeline with a custom projection.
Bucket(AggregateExpressionDefinition<TResult, TValue>, IEnumerable, AggregateBucketOptions)
Appends a $bucket stage to the pipeline.
Appends a $bucket stage to the pipeline with a custom projection.
ChangeStream(ChangeStreamStageOptions)
Appends a $changeStream stage to the pipeline. Normally you would prefer to use the Watch method of IMongoCollection. Only use this method if subsequent stages project away the resume token (the _id) or you don't want the resulting cursor to automatically resume.
Appends a count stage to the pipeline.
Densify(FieldDefinition, DensifyRange, params FieldDefinition[])
Appends a $densify stage to the pipeline.
Densify(FieldDefinition, DensifyRange, IEnumerable<FieldDefinition>)
Appends a $densify stage to the pipeline.
Facet(IEnumerable<AggregateFacet>, AggregateFacetOptions)
Appends a $facet stage to the pipeline.
Appends a $graphLookup stage to the pipeline.
Group(ProjectionDefinition<TResult, TNewResult>)
Appends a group stage to the pipeline.
Appends a limit stage to the pipeline.
Appends a lookup stage to the pipeline.
Appends a lookup stage to the pipeline.
Appends a match stage to the pipeline.
MergeAsync(IMongoCollection, MergeStageOptions, CancellationToken)
Appends a merge stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Merge(IMongoCollection, MergeStageOptions, CancellationToken)
Appends a merge stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Appends a match stage to the pipeline that matches derived documents and changes the result type to the derived type.
Out(IMongoCollection, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Out(IMongoCollection, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Out(string, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Out(string, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
OutAsync(IMongoCollection, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
OutAsync(IMongoCollection, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
OutAsync(string, TimeSeriesOptions, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
OutAsync(string, CancellationToken)
Appends an out stage to the pipeline and executes it, and then returns a cursor to read the contents of the output collection.
Project(ProjectionDefinition<TResult, TNewResult>)
Appends a project stage to the pipeline.
ReplaceRoot(AggregateExpressionDefinition<TResult, TNewResult>)
Appends a $replaceRoot stage to the pipeline.
ReplaceWith(AggregateExpressionDefinition<TResult, TNewResult>)
Appends a $replaceWith stage to the pipeline.
Appends a sample stage to the pipeline.
Search(SearchDefinition, SearchHighlightOptions, string, SearchCountOptions, bool, bool)
Appends a $search stage to the pipeline.
Search(SearchDefinition, SearchOptions)
Appends a $search stage to the pipeline.
SearchMeta(SearchDefinition, string, SearchCountOptions)
Appends a $searchMeta stage to the pipeline.
Appends a $set stage to the pipeline.
SetWindowFields(AggregateExpressionDefinition<ISetWindowFieldsPartition, TWindowFields>)
Appends a $setWindowFields to the pipeline.
Appends a $setWindowFields to the pipeline.
Appends a $setWindowFields to the pipeline.
Appends a skip stage to the pipeline.
Appends a sort stage to the pipeline.
SortByCount(AggregateExpressionDefinition<TResult, TId>)
Appends a sortByCount stage to the pipeline.
Combines the current sort definition with an additional sort definition.
ToCollection(CancellationToken)
Executes an aggregation pipeline that writes the results to a collection.
ToCollectionAsync(CancellationToken)
Executes an aggregation pipeline that writes the results to a collection.
Executes the operation and returns a cursor to the results.
ToCursorAsync(CancellationToken)
Executes the operation and returns a cursor to the results.
UnionWith(IMongoCollection, PipelineDefinition<TWith, TResult>)
Appends an $unionWith stage to the pipeline.
Unwind(FieldDefinition, IBsonSerializer)
Appends an unwind stage to the pipeline.
Unwind(FieldDefinition, AggregateUnwindOptions)
Appends an unwind stage to the pipeline.
VectorSearch(FieldDefinition, QueryVector, int, VectorSearchOptions)
Appends a vector search stage.