moleculer-db icon indicating copy to clipboard operation
moleculer-db copied to clipboard

moleculer-db-adapter-mongoose: Breaks when using model from external package

Open Nicholaiii opened this issue 4 years ago • 1 comments

When I import a model from another package, functionality breaks because the external model will have it's own instance of mongoose and own connection. I suppose this can be solved by using the connection in the external model instead, or by setting the external models connection to the internals one.

Nicholaiii avatar Jan 10 '21 15:01 Nicholaiii

because mongoose does not allow to do

0x0a0d avatar Apr 06 '21 04:04 0x0a0d