DEV Community

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

Collapse
 
mouna_chaib_8b2cb5111511c profile image
mouna

i don't know why populate is not working for me i get a empty array

Collapse
 
paras594 profile image
Paras 🧙‍♂️

don't forget to add ids in that array

Collapse
 
mouna_chaib_8b2cb5111511c profile image
mouna

yes that's why i was getting an empty array, thank you

Thread Thread
 
paras594 profile image
Paras 🧙‍♂️

:) good luck !