ashleydavis / mongodb-rest

REST Server for MongoDB (using node.js)
GNU Lesser General Public License v3.0
75 stars 34 forks source link

Mongo URI's with replica sets don't work #17

Open ZECTBynmo opened 8 years ago

ZECTBynmo commented 8 years ago

Mongo connections with replica sets have uri's that contain query parameters. These are broken by the setup of the connection string https://github.com/codecapers/mongodb-rest/blob/master/lib/rest.js#L85-L105

I have a fix for this, and I can submit a PR. My approach is to basically detect query parameters, add them onto the end of the url, and pass things around appropriately.

ashleydavis commented 8 years ago

Please submit your PR.

tscislo commented 7 years ago

Any update on this?