IAggregateFluentTResultLookupTNewResult Method |
Appens a lookup stage to the pipeline.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.1.0
Syntax IAggregateFluent<TNewResult> Lookup<TNewResult>(
string from,
FieldDefinition<TResult> localField,
FieldDefinition<BsonDocument> foreignField,
FieldDefinition<TNewResult> as,
IBsonSerializer<TNewResult> newResultSerializer = null
)
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>
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.IAggregateFluent`1.Lookup``1(System.String,MongoDB.Driver.FieldDefinition{`0},MongoDB.Driver.FieldDefinition{MongoDB.Bson.BsonDocument},MongoDB.Driver.FieldDefinition{``0},MongoDB.Bson.Serialization.IBsonSerializer{``0})"]
See Also