mongodb-rest icon indicating copy to clipboard operation
mongodb-rest copied to clipboard

Mongo URI's with replica sets don't work

Open ZECTBynmo opened this issue 9 years ago • 2 comments

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.

ZECTBynmo avatar Jan 10 '16 02:01 ZECTBynmo

Please submit your PR.

ashleydavis avatar Feb 15 '16 10:02 ashleydavis

Any update on this?

tscislo avatar Jul 03 '17 13:07 tscislo