Skip to content

Hi, Talents, I need your help! #14392

Closed Answered by codemaster727
SuperBluestar asked this question in Q&A
Discussion options

You must be logged in to vote

Hi

The first thing to understand about mongoose population is that it is not magic, but just a convenience method that allows you to retrieve related information without doing it all yourself.

The concept is essentially for use where you decide you are going to need to place data in a separate collection rather than embedding that data, and your main considerations should be typically on document size or where that related information is subject to frequent updates that would make maintaining embedded data unwieldy.

The "not magic" part is that essentially what happens under the covers is that when you "reference" another source, the populate function makes an additional query/queries to …

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@SuperBluestar
Comment options

Answer selected by SuperBluestar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants