Why replica set is mandatory for transactions in MongoDB?

Hi Iván,

Welcome to the community.

You can convert a standalone to a single-node replica set to enable transactions. All you have to do is start mongod with --replset flag.

The link posted by Pavel above goes into more detail.

2 Likes