Hi,
I’m trying to apply an additional filter to the lookup method with MongDb driver, but I cannot find a way to do that. I would like to filter the Sections collection by Name.
var rRangesV2 =
rmInstrumentsCollection.Aggregate().Match(x => x.rpName == "PPMU660")
.Lookup("Submodules", "_id", "rpBoardID", "asSubmodules")
.Lookup("Sections", "asSubmodules._id", "rpSubModuleID", "asSections")
.Lookup("Functions", "asSections._id", "rpSectionID", "asFunctions")
.Lookup("Ranges", "asFunctions._id", "rpFunctionID", "asRanges")
.ToList();
Thanks in advance,