migrate-mongo icon indicating copy to clipboard operation
migrate-mongo copied to clipboard

Auth user+pass setting separate from URI

Open cxn-rszucs opened this issue 6 years ago • 2 comments

We would like to separate the connection URI from the database user and password while configuring migrate-mongo.

It would be appreciated if we could set the database address and the authentication parameters separately (not having to merge all info into a single string), for example in the options part of the config file, using user, pass... options.

cxn-rszucs avatar Apr 27 '20 12:04 cxn-rszucs

Is it possible to use env variable ? And perhaps, inside a project, use the .env file ?

flavienaudin avatar Jul 20 '20 14:07 flavienaudin

Is it possible to pass a mongoClient instead of the url? this would make it easy to abstract and not to worry about the many database connectivity options.

sadranyi avatar Oct 30 '20 09:10 sadranyi