DEV Community


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

Hungry for learn
・1 min read

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 ]

Discussion (0)

Forem Open with the Forem app