Closed FeeFelipe closed 7 years ago
Have you set the connection
field in the options object when you call model.plugin
?
See the readme. If you're using a custom created connection then this needs to be passed to the plugin. The plugin assumes you are using the default connection (i.e. mongoose.connect
) if this is not set.
Let me know if this doesn't work.
Thanks it works
:+1:
Hi,
I've had to change my application to use "let conn = mongoose.createConnection" it's change created a bug in my application, the initial request stay in loading and doesn't return the response.
When i've used 'mongoose.connect' this plugin works very well!