Answer Posted / Mr Sumant Kumar
In Mongoose, you can use the populate method to populate multiple fields. To do this, pass an array containing the field names as a second argument to the populate method.nnexample: Model.findOne({}) .populate(['field1', 'field2']) .exec()
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers