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
Copy file name to clipboardExpand all lines: docs/guides/quick-start-guide.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,6 +51,8 @@ import { MongoMemoryReplSet } from 'mongodb-memory-server';
51
51
52
52
// This will create an new instance of "MongoMemoryReplSet" and automatically start all Servers
53
53
const replset =awaitMongoMemoryReplSet.create({ replSet: { count: 4 } }); // This will create an ReplSet with 4 members
54
+
// To use Transactions, the "storageEngine" needs to be changed to `wiredTiger`
55
+
const replset =awaitMongoMemoryReplSet.create({ replSet: { count: 4, storageEngine: 'wiredTiger' } }); // This will create an ReplSet with 4 members and storage-engine "wiredTiger"
0 commit comments