Click or drag to resize

PipelineDefinitionBuilder Methods

The PipelineDefinitionBuilder type exposes the following members.

Methods
  NameDescription
Public methodStatic memberAppendStageTInput, TIntermediate, TOutput
Appends a stage to the pipeline.
Public methodStatic memberAsTInput, TIntermediate, TOutput
Changes the output type of the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, IEnumerableTValue, AggregateBucketOptionsTValue)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, IEnumerableTValue, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, IEnumerableTValue, ProjectionDefinitionTIntermediate, TOutput, AggregateBucketOptionsTValue)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, IEnumerableTValue, ExpressionFuncIGroupingTValue, TIntermediate, TOutput, AggregateBucketOptionsTValue, ExpressionTranslationOptions)
Appends a $bucket stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, Int32, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, Int32, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue, Int32, ProjectionDefinitionTIntermediate, TOutput, AggregateBucketAutoOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberBucketAutoTInput, TIntermediate, TValue, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, Int32, ExpressionFuncIGroupingTValue, TIntermediate, TOutput, AggregateBucketAutoOptions, ExpressionTranslationOptions)
Appends a $bucketAuto stage to the pipeline.
Public methodStatic memberChangeStreamTInput, TIntermediate
Appends a $changeStream stage to the pipeline. Normally you would prefer to use the Watch method of IMongoCollectionTDocument. 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 memberCountTInput, TIntermediate
Appends a $count stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, AggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, IEnumerableAggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateFacetTIntermediate)
Appends a $facet stage to the pipeline.
Public methodStatic memberFacetTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, IEnumerableAggregateFacetTIntermediate, AggregateFacetOptionsTOutput)
Appends a $facet stage to the pipeline.
Public methodStatic memberForTInput
Used to start creating a pipeline for {TInput} documents.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, BsonValue, FieldDefinitionTFrom, BsonValue, AggregateExpressionDefinitionTIntermediate, BsonValue, FieldDefinitionBsonDocument, IEnumerableBsonDocument, FieldDefinitionBsonDocument, Int32)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTIntermediate, TStartWith, FieldDefinitionTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTIntermediate, TStartWith, ExpressionFuncTOutput, TAs, AggregateGraphLookupOptionsTFrom, TFrom, TOutput, ExpressionTranslationOptions)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, FieldDefinitionTFrom, TConnectFrom, FieldDefinitionTFrom, TConnectTo, AggregateExpressionDefinitionTIntermediate, TStartWith, FieldDefinitionTOutput, TAs, FieldDefinitionTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGraphLookupTInput, TIntermediate, TFrom, TConnectFrom, TConnectTo, TStartWith, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTFrom, ExpressionFuncTFrom, TConnectFrom, ExpressionFuncTFrom, TConnectTo, ExpressionFuncTIntermediate, TStartWith, ExpressionFuncTOutput, TAs, ExpressionFuncTAsElement, Int32, AggregateGraphLookupOptionsTFrom, TAsElement, TOutput, ExpressionTranslationOptions)
Appends a $graphLookup stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, BsonDocument)
Appends a group stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, TOutput)
Appends a $group stage to the pipeline.
Public methodStatic memberGroupTInput, TIntermediate, TKey, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TKey, ExpressionFuncIGroupingTKey, TIntermediate, TOutput, ExpressionTranslationOptions)
Appends a group stage to the pipeline (this method can only be used with LINQ2).
Public methodStatic memberGroupForLinq3TInput, TIntermediate, TKey, TOutput
Appends a group stage to the pipeline (this method can only be used with LINQ3).
Public methodStatic memberLimitTInput, TOutput
Appends a $limit stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, FieldDefinitionTIntermediate, FieldDefinitionTForeignDocument, FieldDefinitionTOutput, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, ExpressionFuncTIntermediate, Object, ExpressionFuncTForeignDocument, Object, ExpressionFuncTOutput, Object, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, FieldDefinitionTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberLookupTInput, TIntermediate, TForeignDocument, TAsElement, TAs, TOutput(PipelineDefinitionTInput, TIntermediate, IMongoCollectionTForeignDocument, BsonDocument, PipelineDefinitionTForeignDocument, TAsElement, ExpressionFuncTOutput, TAs, AggregateLookupOptionsTForeignDocument, TOutput)
Appends a $lookup stage to the pipeline.
Public methodStatic memberMatchTInput, TOutput(PipelineDefinitionTInput, TOutput, FilterDefinitionTOutput)
Appends a $match stage to the pipeline.
Public methodStatic memberMatchTInput, TOutput(PipelineDefinitionTInput, TOutput, ExpressionFuncTOutput, Boolean)
Appends a match stage to the pipeline.
Public methodStatic memberMergeTInput, TIntermediate, TOutput
Appends a $merge stage to the pipeline.
Public methodStatic memberOfTypeTInput, TIntermediate, TOutput
Appends a $match stage to the pipeline to select documents of a certain type.
Public methodStatic memberOutTInput, TOutput
Appends a $out stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, BsonDocument)
Appends a project stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ProjectionDefinitionTIntermediate, TOutput)
Appends a $project stage to the pipeline.
Public methodStatic memberProjectTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a project stage to the pipeline.
Public methodStatic memberReplaceRootTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TOutput)
Appends a $replaceRoot stage to the pipeline.
Public methodStatic memberReplaceRootTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a $replaceRoot stage to the pipeline.
Public methodStatic memberReplaceWithTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TOutput)
Appends a $replaceWith stage to the pipeline.
Public methodStatic memberReplaceWithTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TOutput, ExpressionTranslationOptions)
Appends a $replaceWith stage to the pipeline.
Public methodStatic memberSkipTInput, TOutput
Appends a $skip stage to the pipeline.
Public methodStatic memberSortTInput, TOutput
Appends a $sort stage to the pipeline.
Public methodStatic memberSortByCountTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, AggregateExpressionDefinitionTIntermediate, TValue)
Appends a $sortByCount stage to the pipeline.
Public methodStatic memberSortByCountTInput, TIntermediate, TValue(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, TValue, ExpressionTranslationOptions)
Appends a sortByCount stage to the pipeline.
Public methodStatic memberUnionWithTInput, TWith, TOutput
Appends a $unionWith stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, FieldDefinitionTIntermediate, AggregateUnwindOptionsBsonDocument)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, Object, AggregateUnwindOptionsBsonDocument)
Appends an unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, FieldDefinitionTIntermediate, AggregateUnwindOptionsTOutput)
Appends an $unwind stage to the pipeline.
Public methodStatic memberUnwindTInput, TIntermediate, TOutput(PipelineDefinitionTInput, TIntermediate, ExpressionFuncTIntermediate, Object, AggregateUnwindOptionsTOutput)
Appends an unwind stage to the pipeline.
Top
See Also