• Tools
  • Articles
  • Q&A
  • Login
0 0

mongoose populate 关联查询问题


查询有一条不能对应,返回结果就是undefined


 Anchors.populate(models,{ path: 'anchorsid',select: 'name' }, function (err, model) {
  console.log(model);
})

node.js populate mongoose

10 years, 9 months ago
bekawo

bekawo


share
bekawo 10 years, 9 months ago

Answers

Your Answer

Ask Question
Related questions

请看一下下面的代码,有什么问题?

mongoose如何进行高维度查询?

mongoose如何取得全部结果数量并只提取部分结果

如何搭建一个垂直化的搜索引擎?(mongodb,elasticsearch)

mongoose中$in的查询问题

使用Mongoose定义的Schema包含数组,保存的时候出错CastError: Cast ...