Support for multi-document transactions are released recently with Mongo 4.0. With the release of Mongoid 7.0.1 (Mongo 2.6.1 driver), multi-document transactions seems to be supported on Rails now.
However the documentation website for Mongoid is not updated it seems. How would we go about using this feature?
I have to update 2 documents (one credit and one debit), so both have to pass or both have to fail. Anyone figured out how to make use of the new feature yet?
(I would use the mongoid7
tag but reputation not sufficient to create)