Click or drag to resize
AggregateFluentBaseTResultLookupTNewResult Method
Appens a lookup stage to the pipeline.

Namespace: MongoDB.Driver
Assembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.1.0
Syntax
public virtual IAggregateFluent<TNewResult> Lookup<TNewResult>(
	string from,
	FieldDefinition<TResult> localField,
	FieldDefinition<BsonDocument> foreignField,
	FieldDefinition<TNewResult> as,
	IBsonSerializer<TNewResult> newResultSerializer = null
)

Parameters

from
Type: SystemString
From.
localField
Type: MongoDB.DriverFieldDefinitionTResult
The local field.
foreignField
Type: MongoDB.DriverFieldDefinitionBsonDocument
The foreign field.
as
Type: MongoDB.DriverFieldDefinitionTNewResult
As.
newResultSerializer (Optional)
Type: MongoDB.Bson.SerializationIBsonSerializerTNewResult
The new result serializer.

Type Parameters

TNewResult
The type of the new result.

Return Value

Type: IAggregateFluentTNewResult

[Missing <returns> documentation for "M:MongoDB.Driver.AggregateFluentBase`1.Lookup``1(System.String,MongoDB.Driver.FieldDefinition{`0},MongoDB.Driver.FieldDefinition{MongoDB.Bson.BsonDocument},MongoDB.Driver.FieldDefinition{``0},MongoDB.Bson.Serialization.IBsonSerializer{``0})"]

Implements

IAggregateFluentTResultLookupTNewResult(String, FieldDefinitionTResult, FieldDefinitionBsonDocument, FieldDefinitionTNewResult, IBsonSerializerTNewResult)
See Also