Click or drag to resize

PipelineStageDefinitionBuilder Class

Methods for building pipeline stages.
Inheritance Hierarchy
System.Object
  MongoDB.Driver.PipelineStageDefinitionBuilder

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.20.0+ee01960089f28ea1b501690df5fc9f6318a70242
Syntax
public static class PipelineStageDefinitionBuilder

The PipelineStageDefinitionBuilder type exposes the following members.

Methods
  NameDescription
Public methodStatic memberBucket<TInput, TValue>(AggregateExpressionDefinition<TInput, TValue>, IEnumerable<TValue>, AggregateBucketOptions<TValue>)
Creates a $bucket stage.
Public methodStatic memberBucket<TInput, TValue>(Expression<Func<TInput, TValue>>, IEnumerable<TValue>, AggregateBucketOptions<TValue>, ExpressionTranslationOptions)
Creates a $bucket stage.
Public methodStatic memberBucket<TInput, TValue, TOutput>(AggregateExpressionDefinition<TInput, TValue>, IEnumerable<TValue>, ProjectionDefinition<TInput, TOutput>, AggregateBucketOptions<TValue>)
Creates a $bucket stage.
Public methodStatic memberBucket<TInput, TValue, TOutput>(Expression<Func<TInput, TValue>>, IEnumerable<TValue>, Expression<Func<IGrouping<TValue, TInput>, TOutput>>, AggregateBucketOptions<TValue>, ExpressionTranslationOptions)
Creates a $bucket stage.
Public methodStatic memberBucketAuto<TInput, TValue>(AggregateExpressionDefinition<TInput, TValue>, Int32, AggregateBucketAutoOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAuto<TInput, TValue>(Expression<Func<TInput, TValue>>, Int32, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAuto<TInput, TValue, TOutput>(AggregateExpressionDefinition<TInput, TValue>, Int32, ProjectionDefinition<TInput, TOutput>, AggregateBucketAutoOptions)
Creates a $bucketAuto stage.
Public methodStatic memberBucketAuto<TInput, TValue, TOutput>(Expression<Func<TInput, TValue>>, Int32, Expression<Func<IGrouping<AggregateBucketAutoResultId<TValue>, TInput>, TOutput>>, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Creates a $bucketAuto stage (this overload can only be used with LINQ3).
Public methodStatic memberBucketAutoForLinq2<TInput, TValue, TOutput>
Creates a $bucketAuto stage (this method can only be used with LINQ2).
Public methodStatic memberChangeStream<TInput>
Creates a $changeStream stage. Normally you would prefer to use the Watch method of IMongoCollection<TDocument>. 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.
Public methodStatic memberCount<TInput>
Creates a $count stage.
Public methodStatic memberDensify<TInput>(Expression<Func<TInput, Object>>, DensifyRange, IEnumerable<Expression<Func<TInput, Object>>>)
Creates a $densify stage.
Public methodStatic memberDensify<TInput>(Expression<Func<TInput, Object>>, DensifyRange,Expression<Func<TInput, Object>>[])
Creates a $densify stage.
Public methodStatic memberDensify<TInput>(FieldDefinition<TInput>, DensifyRange,FieldDefinition<TInput>[])
Creates a $densify stage.
Public methodStatic memberDensify<TInput>(FieldDefinition<TInput>, DensifyRange, IEnumerable<FieldDefinition<TInput>>)
Creates a $densify stage.
Public methodStatic memberDocuments<TDocument>(IEnumerable<TDocument>, IBsonSerializer<TDocument>)
Creates a $documents stage.
Public methodStatic memberDocuments<TDocument>(AggregateExpressionDefinition<NoPipelineInput, IEnumerable<TDocument>>, IBsonSerializer<TDocument>)
Creates a $documents stage.
Public methodStatic memberFacet<TInput>(AggregateFacet<TInput>[])
Creates a $facet stage.
Public methodStatic memberFacet<TInput>(IEnumerable<AggregateFacet<TInput>>)
Creates a $facet stage.
Public methodStatic memberFacet<TInput, TOutput>(AggregateFacet<TInput>[])
Creates a $facet stage.
Public methodStatic memberFacet<TInput, TOutput>(IEnumerable<AggregateFacet<TInput>>, AggregateFacetOptions<TOutput>)
Creates a $facet stage.
Public methodStatic memberGraphLookup<TInput, TFrom>(IMongoCollection<TFrom>, FieldDefinition<TFrom, BsonValue>, FieldDefinition<TFrom, BsonValue>, AggregateExpressionDefinition<TInput, BsonValue>, FieldDefinition<BsonDocument, IEnumerable<BsonDocument>>, FieldDefinition<BsonDocument, Int32>)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookup<TInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput>(IMongoCollection<TFrom>, FieldDefinition<TFrom, TConnectFrom>, FieldDefinition<TFrom, TConnectTo>, AggregateExpressionDefinition<TInput, TStartWith>, FieldDefinition<TOutput, TAs>, AggregateGraphLookupOptions<TFrom, TFrom, TOutput>)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookup<TInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput>(IMongoCollection<TFrom>, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TInput, TStartWith>>, Expression<Func<TOutput, TAs>>, AggregateGraphLookupOptions<TFrom, TFrom, TOutput>, ExpressionTranslationOptions)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookup<TInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput>(IMongoCollection<TFrom>, FieldDefinition<TFrom, TConnectFrom>, FieldDefinition<TFrom, TConnectTo>, AggregateExpressionDefinition<TInput, TStartWith>, FieldDefinition<TOutput, TAs>, FieldDefinition<TAsElement, Int32>, AggregateGraphLookupOptions<TFrom, TAsElement, TOutput>)
Creates a $graphLookup stage.
Public methodStatic memberGraphLookup<TInput, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput>(IMongoCollection<TFrom>, Expression<Func<TFrom, TConnectFrom>>, Expression<Func<TFrom, TConnectTo>>, Expression<Func<TInput, TStartWith>>, Expression<Func<TOutput, TAs>>, Expression<Func<TAsElement, Int32>>, AggregateGraphLookupOptions<TFrom, TAsElement, TOutput>, ExpressionTranslationOptions)
Creates a $graphLookup stage.
Public methodStatic memberGroup<TInput>(ProjectionDefinition<TInput, BsonDocument>)
Creates a $group stage.
Public methodStatic memberGroup<TInput, TOutput>(ProjectionDefinition<TInput, TOutput>)
Creates a $group stage.
Public methodStatic memberGroup<TInput, TValue, TOutput>(Expression<Func<TInput, TValue>>, Expression<Func<IGrouping<TValue, TInput>, TOutput>>, ExpressionTranslationOptions)
Creates a $group stage (this method can only be used with LINQ2).
Public methodStatic memberLimit<TInput>
Creates a $limit stage.
Public methodStatic memberLookup<TInput, TForeignDocument, TOutput>(IMongoCollection<TForeignDocument>, FieldDefinition<TInput>, FieldDefinition<TForeignDocument>, FieldDefinition<TOutput>, AggregateLookupOptions<TForeignDocument, TOutput>)
Creates a $lookup stage.
Public methodStatic memberLookup<TInput, TForeignDocument, TOutput>(IMongoCollection<TForeignDocument>, Expression<Func<TInput, Object>>, Expression<Func<TForeignDocument, Object>>, Expression<Func<TOutput, Object>>, AggregateLookupOptions<TForeignDocument, TOutput>)
Creates a $lookup stage.
Public methodStatic memberLookup<TInput, TForeignDocument, TAsElement, TAs, TOutput>(IMongoCollection<TForeignDocument>, BsonDocument, PipelineDefinition<TForeignDocument, TAsElement>, FieldDefinition<TOutput, TAs>, AggregateLookupOptions<TForeignDocument, TOutput>)
Creates a $lookup stage.
Public methodStatic memberLookup<TInput, TForeignDocument, TAsElement, TAs, TOutput>(IMongoCollection<TForeignDocument>, BsonDocument, PipelineDefinition<TForeignDocument, TAsElement>, Expression<Func<TOutput, TAs>>, AggregateLookupOptions<TForeignDocument, TOutput>)
Creates a $lookup stage.
Public methodStatic memberMatch<TInput>(Expression<Func<TInput, Boolean>>)
Creates a $match stage.
Public methodStatic memberMatch<TInput>(FilterDefinition<TInput>)
Creates a $match stage.
Public methodStatic memberMerge<TInput, TOutput>
Creates a $merge stage.
Public methodStatic memberOfType<TInput, TOutput>
Create a $match stage that select documents of a sub type.
Public methodStatic memberOut<TInput>
Creates a $out stage.
Public methodStatic memberProject<TInput>(ProjectionDefinition<TInput, BsonDocument>)
Creates a $project stage.
Public methodStatic memberProject<TInput, TOutput>(ProjectionDefinition<TInput, TOutput>)
Creates a $project stage.
Public methodStatic memberProject<TInput, TOutput>(Expression<Func<TInput, TOutput>>, ExpressionTranslationOptions)
Creates a $project stage.
Public methodStatic memberReplaceRoot<TInput, TOutput>(AggregateExpressionDefinition<TInput, TOutput>)
Creates a $replaceRoot stage.
Public methodStatic memberReplaceRoot<TInput, TOutput>(Expression<Func<TInput, TOutput>>, ExpressionTranslationOptions)
Creates a $replaceRoot stage.
Public methodStatic memberReplaceWith<TInput, TOutput>(AggregateExpressionDefinition<TInput, TOutput>)
Creates a $replaceWith stage.
Public methodStatic memberReplaceWith<TInput, TOutput>(Expression<Func<TInput, TOutput>>, ExpressionTranslationOptions)
Creates a $replaceWith stage.
Public methodStatic memberSearch<TInput>
Creates a $search stage.
Public methodStatic memberSearchMeta<TInput>
Creates a $searchMeta stage.
Public methodStatic memberSetWindowFields<TInput, TWindowFields>(AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFields<TInput, TWindowFields>(Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>>, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFields<TInput, TPartitionBy, TWindowFields>(AggregateExpressionDefinition<TInput, TPartitionBy>, SortDefinition<TInput>, AggregateExpressionDefinition<ISetWindowFieldsPartition<TInput>, TWindowFields>)
Create a $setWindowFields stage.
Public methodStatic memberSetWindowFields<TInput, TPartitionBy, TWindowFields>(Expression<Func<TInput, TPartitionBy>>, SortDefinition<TInput>, Expression<Func<ISetWindowFieldsPartition<TInput>, TWindowFields>>, ExpressionTranslationOptions)
Create a $setWindowFields stage.
Public methodStatic memberSkip<TInput>
Creates a $skip stage.
Public methodStatic memberSort<TInput>
Creates a $sort stage.
Public methodStatic memberSortByCount<TInput, TValue>(AggregateExpressionDefinition<TInput, TValue>)
Creates a $sortByCount stage.
Public methodStatic memberSortByCount<TInput, TValue>(Expression<Func<TInput, TValue>>, ExpressionTranslationOptions)
Creates a $sortByCount stage.
Public methodStatic memberUnionWith<TInput, TWith>
Creates a $unionWith stage.
Public methodStatic memberUnwind<TInput>(Expression<Func<TInput, Object>>, AggregateUnwindOptions<BsonDocument>)
Creates an $unwind stage.
Public methodStatic memberUnwind<TInput>(FieldDefinition<TInput>, AggregateUnwindOptions<BsonDocument>)
Creates an $unwind stage.
Public methodStatic memberUnwind<TInput, TOutput>(Expression<Func<TInput, Object>>, AggregateUnwindOptions<TOutput>)
Creates an $unwind stage.
Public methodStatic memberUnwind<TInput, TOutput>(FieldDefinition<TInput>, AggregateUnwindOptions<TOutput>)
Creates an $unwind stage.
Top
See Also