Hi friends,
I am doing aggregation on $lookup on three collections.
The question is does mongo supports more than 1 field(more than one equality).
In my case I have three localFields and three foreignFields?
If it supports, how to achieve more than on equality condition using $lookup.
db.test.aggregate([
{ $lookup : {
from: "grl",
localField: "subGroup",
localField: “date",
localFiled: "currency"
foreignField: “Group",
foreignField: “s_date",
foreignFiled: "currency"
as: "data"
} }
])
How to change my $lookup aggregation so that i have get combined records from all three collections