AggregateFluentBaseTResultLookupTForeignDocument, TNewResult Method |
Appends a lookup stage to the pipeline.
Namespace: MongoDB.DriverAssembly: MongoDB.Driver (in MongoDB.Driver.dll) Version: 2.3.0
Syntax public virtual IAggregateFluent<TNewResult> Lookup<TForeignDocument, TNewResult>(
string foreignCollectionName,
FieldDefinition<TResult> localField,
FieldDefinition<TForeignDocument> foreignField,
FieldDefinition<TNewResult> as,
AggregateLookupOptions<TForeignDocument, TNewResult> options
)
Public Overridable Function Lookup(Of TForeignDocument, TNewResult) (
foreignCollectionName As String,
localField As FieldDefinition(Of TResult),
foreignField As FieldDefinition(Of TForeignDocument),
as As FieldDefinition(Of TNewResult),
options As AggregateLookupOptions(Of TForeignDocument, TNewResult)
) As IAggregateFluent(Of TNewResult)
abstract Lookup :
foreignCollectionName : string *
localField : FieldDefinition<'TResult> *
foreignField : FieldDefinition<'TForeignDocument> *
as : FieldDefinition<'TNewResult> *
options : AggregateLookupOptions<'TForeignDocument, 'TNewResult> -> IAggregateFluent<'TNewResult>
override Lookup :
foreignCollectionName : string *
localField : FieldDefinition<'TResult> *
foreignField : FieldDefinition<'TForeignDocument> *
as : FieldDefinition<'TNewResult> *
options : AggregateLookupOptions<'TForeignDocument, 'TNewResult> -> IAggregateFluent<'TNewResult>
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:
IAggregateFluentTNewResultThe fluent aggregate interface.
Implements
IAggregateFluentTResultLookupTForeignDocument, TNewResult(String, FieldDefinitionTResult, FieldDefinitionTForeignDocument, FieldDefinitionTNewResult, AggregateLookupOptionsTForeignDocument, TNewResult)See Also