Juampi Barreto
1 min readMar 14, 2018

--

Paulo,

I can’t reproduce your error. I always get an error on the console.
It’s weird cause adonis-4-mongoose does not support using a connectionString, so I don’t understand how is that possible.

You should open an issue on github and we’ll talk there. Send any type of logs and try to set debuggers on the packages. Meaning, on the node_modules, on adonis-4-mongoose, right before this line:
https://github.com/kingsinbad/adonis-4-mongoose/blob/master/provider/Mongoose.js#L20, debug the content of ‘connectionString’. Do the same with adonis-mongoose-model.

Also you should set an index with the debug: true. That way, when the first request is made to the database, the index will run, and it’ll log the action. Maybe that way you can check if it’s working or not.

--

--

No responses yet