Below is my $lookup code
{
from: "profile_recommendation_info",
localField: "_id",
foreignField: "profile_id",
as: "result",
pipeline : [
{
$match : {
"new_recommendations" : {
$eq : null
}
}
}
]
}
Below code is java equivalent code for lookup without in java
LookupOperation lookupOperation = Aggregation.lookup(CommonConstants.PROFILE_RECOMMENDATION_INFO, CommonConstants.ID, CommonConstants.PROFILE_UNDERSCORE_ID, CommonConstants.RESULT);
How to achieve the same in java but with pipeline condition in lookup(As shown in above $lookup aggregation query ) in java?