nswbmw / koa-mongo

MongoDB middleware for koa, support connection pool.
145 stars 31 forks source link

Cannot cannot to Mongo Altas cluster due to mongo+srv:// #41

Closed smallcampus closed 5 years ago

smallcampus commented 5 years ago

When i try to connect to my Mongo Altas cluster, the connection uri I need to use is mongodb+srv://someAdmin:somePwd@qiaer.mongodb.net/test?retryWrites=true&w=majority

Which is rejected by the underlying muri library. /node_modules/muri/lib/index.js:28 throw new Error('Invalid mongodb uri "' + str + '". Must begin with "mongodb://"');