Mongoose/node.js how to find, populate, do stuff, 'depopulate' and update

后端 未结 1 1835
小鲜肉
小鲜肉 2020-12-22 07:10

I want to make a nice and elegant call to db, but constantly suffer from lack of mongoose experience.

Hope i\'m not too annoying, i\'m trying to adress Stack Overflo

相关标签:
1条回答
  • 2020-12-22 07:57

    Here is the query to get UserMeta with ids only

    Room.findOne({ Roomid: roomid },function (err, oldRoom) {
    
    });
    
    0 讨论(0)
提交回复
热议问题