Jackong / koa-mongoose

mongoose middleware for koa
MIT License
47 stars 10 forks source link

Connect to replica set #12

Open zubairhamid opened 7 years ago

zubairhamid commented 7 years ago

is there a way to connect to replica set? Please inform on the database options we need this is my current db options { "user" : "", "pass" : "", "host" : "127.0.0.1", "port" : 27017, "database" : "test", "db" : { "native_parser" : true }, "server" : { "poolSize" : 5 } }

MarkVasile commented 6 years ago

Connection to replica set is a mongoose thing, here's what I've found, give it a try (the last answer there): https://github.com/Automattic/mongoose/issues/5819