DEV Community


Discussion on: How to use Populate in Mongoose & Node.js

paras594 profile image
Paras 🧙‍♂️ Author • Edited

No, it doesn't translate to a $lookup and Yes, it makes another query to db to get the required data.
Good question !

djnitehawk profile image

I see. yeah clientside joins are a difficult problem to solve. I've been trying to do that with my c# mongodb library but still haven't found a proper/ user friendly way. was expecting to steal it from mongoose if they've managed it 😜

Thread Thread
paras594 profile image
Paras 🧙‍♂️ Author

hahaha...i think you have to use $lookup and $aggregation :p