DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
mongoose populate selected fields
Model .find(query) .populate({ path: 'key_with_ref', select: ['field_1', 'field_2'] });
PREVIOUS
NEXT
Tagged:
#mongoose
#populate
#selected
#fields
ADD COMMENT
Topic
COMMENT
Name
3+7 =
Submit