Exemplo n.º 1
0
        public override IAggregateFluent <TNewResult> Lookup <TForeignDocument, TNewResult>(string foreignCollectionName, FieldDefinition <TResult> localField, FieldDefinition <TForeignDocument> foreignField, FieldDefinition <TNewResult> @as, AggregateLookupOptions <TForeignDocument, TNewResult> options)
        {
            Ensure.IsNotNull(foreignCollectionName, nameof(foreignCollectionName));
            var foreignCollection = Database.GetCollection <TForeignDocument>(foreignCollectionName);

            return(WithPipeline(_pipeline.Lookup(foreignCollection, localField, foreignField, @as, options)));
        }