migrate-mongo
migrate-mongo copied to clipboard
Auth user+pass setting separate from URI
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.
Is it possible to use env variable ? And perhaps, inside a project, use the .env file ?
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.