Created
July 17, 2020 01:59
-
-
Save metildachee/09d9027e70adad2d0a882cf98142effb to your computer and use it in GitHub Desktop.
.populate in mongoose
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
populate({ | |
path: "works", | |
populate: { path: "creator", model: "Creator" } | |
}). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment