seanemmer / mongoose-seed

Seed data population for Mongoose
MIT License
52 stars 33 forks source link

mongos #14

Closed stephenhuey closed 7 years ago

stephenhuey commented 7 years ago

Been using this for a while on my local machine. Just noticed there's no way to pass options to mongoose.connect - any desire to support that? I'm unable to seed a mongos. For example, my Express app can connect by using these options:

mongooseOptions = { mongos: { poolSize: 5, reconnectTries: 1000
} }

But there's no way for me to pass these options to mongoose-seed.

seanemmer commented 7 years ago

Good idea - feel free to submit a PR for this

stephenhuey commented 7 years ago

I did:

https://github.com/seanemmer/mongoose-seed/pull/16

seanemmer commented 7 years ago

Ok, PR accepted - I'll test this out and add to NPM over the weekend