Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

mongoose create populate response

let user = await User.create({ ... })
user = await user.populate('company').execPopulate()
 
PREVIOUS NEXT
Tagged: #mongoose #create #populate #response
ADD COMMENT
Topic
Name
2+7 =