You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
MongoMemoryServer:getConnectionString() add ? character to the uri by default (505b7c2)
MongoMemoryReplSet:getConnectionString() now returns uri with ?replicaSet= option. (401441c)
MongoMemoryServer.getConnectionString() adds ? to uri string
Addition of ? will allow in future add automatically config options to the connection string.
const uri = await mongoServer.getConnectionString();
- mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706+ mongodb://127.0.0.1:49891/4a8ffafc-c154-4f6a-bc60-16f8fdc98706?
MongoMemoryReplSet.getConnectionString()
// before `<6.0.0`consturi=`${awaitreplSet.getConnectionString()}?replicaSet=testset`;// starting from `>=6.0.0` // `?replicaSet=testset` returned by default from `getConnectionString()` methodconsturi=awaitreplSet.getConnectionString();