AggregateFluentBaseTResultLookupTNewResult Method |
Appens a lookup stage to the pipeline.
Namespace: MongoDB.DriverAssembly: 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
)
Public Overridable Function Lookup(Of TNewResult) (
from As String,
localField As FieldDefinition(Of TResult),
foreignField As FieldDefinition(Of BsonDocument),
as As FieldDefinition(Of TNewResult),
Optional newResultSerializer As IBsonSerializer(Of TNewResult) = Nothing
) As IAggregateFluent(Of TNewResult)
abstract Lookup :
from : string *
localField : FieldDefinition<'TResult> *
foreignField : FieldDefinition<BsonDocument> *
as : FieldDefinition<'TNewResult> *
?newResultSerializer : IBsonSerializer<'TNewResult>
(* Defaults:
let _newResultSerializer = defaultArg newResultSerializer null
*)
-> IAggregateFluent<'TNewResult>
override Lookup :
from : string *
localField : FieldDefinition<'TResult> *
foreignField : FieldDefinition<BsonDocument> *
as : FieldDefinition<'TNewResult> *
?newResultSerializer : IBsonSerializer<'TNewResult>
(* Defaults:
let _newResultSerializer = defaultArg newResultSerializer null
*)
-> IAggregateFluent<'TNewResult>
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