Improve the way you use Mongoose populate

Matt E.
Achiev
Published in
3 min readDec 28, 2020

--

Mongoose populate allows you to replace the specified paths in the document with document(s) from other collection(s). It is well known and well documented. If you are not familiar with it, I recommend you to read the following before continuing https://mongoosejs.com/docs/populate.html.

When you look up this method, most tutorials use it like the example given in the official documentation…

--

--

Matt E.
Achiev
Editor for

Software engineer at Achiev & Jounco. Passionate about programming and entrepreneurship