Mongoose, trying to populate from same database, but different project

时间:2019-03-22 11:56:10

标签: node.js mongodb mongoose

I have 2 API's that are located in the same database, but are created in different projects. Whenever I try to populate from one project to another, mongoose show an error "'Schema hasn't been registered for model "ModelName".Use mongoose.model(name, schema)'". Is there another way to populate one project's model, from another project's model?

0 个答案:

没有答案