Skip to content

Commit fc5cc47

Browse files
committed
docs(quick-start-guide): add note about transactions for replicasets
fixes #267
1 parent 89ba484 commit fc5cc47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/guides/quick-start-guide.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,8 @@ import { MongoMemoryReplSet } from 'mongodb-memory-server';
5151

5252
// This will create an new instance of "MongoMemoryReplSet" and automatically start all Servers
5353
const replset = await MongoMemoryReplSet.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 = await MongoMemoryReplSet.create({ replSet: { count: 4, storageEngine: 'wiredTiger' } }); // This will create an ReplSet with 4 members and storage-engine "wiredTiger"
5456

5557
const uri = replset.getUri();
5658

0 commit comments

Comments
 (0)