Transaction in system function of Mongodb Realm app

How to use transactions in the Moongodb Realm app function. If I want to insert 2 documents into 2 collections. If one of them failed the transaction in the session should be rollback. I am talking about the Realm system app function.

Hi @Roshan_Prabashana,

As far as I know Realm does not support transactions for now.

What you can potentially do is upload a mongodb node js driver as a dependency and have a code to execute a transaction through the driver.

https://docs.mongodb.com/realm/functions/import-external-dependencies/

Best regards
Pavel