DEV Community 👩‍💻👨‍💻

Discussion on: Testing Node.js + Mongoose with an in-memory database

ranguna profile image
Luis Pais

I'm guessing this doesn't support multi document transactions ?
Since I think document-level locking is not supported on the memory engine.

paulasantamaria profile image
Paula Santamaría Author

Hi Luis!
I haven't tried it myself yet, but apparently mongodb-memory-server does support multi-document transactions. However, for that to work, you must start the mongodb server as a replica set