We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 04a0a8c commit b35362bCopy full SHA for b35362b
README.md
@@ -171,11 +171,11 @@ const replSet = new MongoMemoryReplSet({
171
replSet: { storageEngine: 'wiredTiger' },
172
});
173
await replSet.waitUntilRunning();
174
-const uri = await mongod.getConnectionString();
+const uri = await replSet.getConnectionString();
175
// or you may obtain the connection config parts:
176
-// const port = await mongod.getPort();
177
-// const dbPath = await mongod.getDbPath();
178
-// const dbName = await mongod.getDbName();
+// const port = await replSet.getPort();
+// const dbPath = await replSet.getDbPath();
+// const dbName = await replSet.getDbName();
179
180
// some code, eg. for mongoose
181
mongoose.set('useFindAndModify', false);
0 commit comments