DEV Community

wasim15185
wasim15185

Posted on

GIVE A SOLUTION of 'POPULATION ' of nested populate in mongoose plzzz

when i requesting "/message/:id" that path then is gives me nested object which given below instead of showing object id of 'msg' i want to poulated 'totalMsg>msg ' and 'totalMsg> _id' but the population is not working

the nested object is showing interminal

{   friends: [ 5f93b5c1a666a93698e67818, 5f9310e9eeab6507509710cf ]
_id:

Top comments (0)