balmasi / migrate-mongoose

A node based migration framework for mongoose supporting ES6 migrations
MIT License
264 stars 84 forks source link

Not working with secure connection (authorization option) #34

Closed Kaushik-junkis closed 5 years ago

Kaushik-junkis commented 6 years ago

Hello,

When we have authorization enabled in security option at mongo side, we have no option to set the username, password. Is there any way to provide username & password for authenticating the user?

halk commented 6 years ago

Have you tried setting username and password in the mongoDB URL as described in https://docs.mongodb.com/manual/reference/connection-string/?

balmasi commented 5 years ago

halk's suggestion is the answer you're looking for :) Thanks @halk