how to use mongoose virtual populate with collection on another database?

后端 未结 0 338
难免孤独
难免孤独 2021-01-15 00:51

I have two databases: db1 - db2 I have two collections: coll_db1 - coll_db2

I use mongoose createConnection for connecting to DBS:

const db1 = mongoose         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题