koa-mongoose icon indicating copy to clipboard operation
koa-mongoose copied to clipboard

Support connection string

Open buo opened this issue 7 years ago • 3 comments

It would be very nice if I could connect to MongoDB using one connection string ruling them all instead of passing user, pass, host, port, and database.

buo avatar Jun 02 '17 17:06 buo

I think it's much easier to configure the current setup between environments.

orion110217 avatar Aug 10 '17 05:08 orion110217

Or, could we support it as optional? I found it's a bit troublesome when I deploy my app on PaaS like Heroku because all MongoDB add-ons gave me just one environment variable having the connection string, so I had to parse them.

And what about connecting to multiple hosts in a replica set?

buo avatar Aug 10 '17 23:08 buo

solved here https://github.com/Jackong/koa-mongoose/pull/11

anvlkv avatar Oct 29 '17 14:10 anvlkv