Lookup on projected results

Does lookup support join on projected results? Can i do lookup after i have filter,group?

is it possible?


You can $unwind, then $lookup. I don’t see any reason why it can’t be done with $match or $group. Do a simple 3-stage aggregation to see if that’s the case.

1 Like