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.14.0+2b37a1fe1cbdbe1a020b52b77f1197b6d77575e7
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<TValue, TInput>, TOutput>>, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Creates a $bucketAuto stage.
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 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 memberGroupForLinq3<TInput, TValue, TOutput>
Creates a $group stage (this method can only be used with LINQ3).
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 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