When you are using multiple DB connections in Mongoose then you need to tell mongoose-history-plugin for which connection you want to create a new table for history. Otherwise, it will not work.
Currently, I am using Nest.js which automatically creates a second connection in mongoose. So this fix was the only way to use mongoose-history-plugin in Nest.js.
When you are using multiple DB connections in Mongoose then you need to tell
mongoose-history-plugin
for which connection you want to create a new table for history. Otherwise, it will not work. Currently, I am using Nest.js which automatically creates a second connection in mongoose. So this fix was the only way to usemongoose-history-plugin
in Nest.js.