Click or drag to resize

AggregateFluentBaseTResultLookupTForeignDocument, TNewResult Method (String, FieldDefinitionTResult, FieldDefinitionTForeignDocument, FieldDefinitionTNewResult, AggregateLookupOptionsTForeignDocument, TNewResult)

Appends a lookup stage to the pipeline.

Namespace:  MongoDB.Driver
Assembly:  MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.13.1-v2-13-x1+a7f8afe27855f38f4f72157d11ba2ae73895502e
Syntax
public virtual IAggregateFluent<TNewResult> Lookup<TForeignDocument, TNewResult>(
	string foreignCollectionName,
	FieldDefinition<TResult> localField,
	FieldDefinition<TForeignDocument> foreignField,
	FieldDefinition<TNewResult> as,
	AggregateLookupOptions<TForeignDocument, TNewResult> options
)

Parameters

foreignCollectionName
Type: SystemString
Name of the other collection.
localField
Type: MongoDB.DriverFieldDefinitionTResult
The local field.
foreignField
Type: MongoDB.DriverFieldDefinitionTForeignDocument
The foreign field.
as
Type: MongoDB.DriverFieldDefinitionTNewResult
The field in TNewResult to place the foreign results.
options
Type: MongoDB.DriverAggregateLookupOptionsTForeignDocument, TNewResult
The options.

Type Parameters

TForeignDocument
The type of the foreign document.
TNewResult
The type of the new result.

Return Value

Type: IAggregateFluentTNewResult
The fluent aggregate interface.

Implements

IAggregateFluentTResultLookupTForeignDocument, TNewResult(String, FieldDefinitionTResult, FieldDefinitionTForeignDocument, FieldDefinitionTNewResult, AggregateLookupOptionsTForeignDocument, TNewResult)
See Also