Closed mmv08 closed 4 years ago
Also I have this:
[ExceptionHandler] Nest can't resolve dependencies of the TodoModel (?). Please make sure that the argument todos-dbConnection at index [0] is available in the TypegooseModule context.
Ok so the problem was is I didn't notice that connectionName
is also a top-level option in forRootAsync
(also used in useFactory
)
Is this a documentation flaw or connectionName
in useFactory
meant to overwrite top-level one?
so after reading the source code it seems like a documentation flaw for me, I created a pr fixing the docs
Closing since the pr was merged.
I'm trying to use multiple dbs in my app, however I get this error:
Here is my usage of the typegoose module
Versions: