I\'m trying to do a simple transaction using mongoose. It worked totally fine on MongoDB Atlas, but in mlab I got such an error: Mon
mongoose
MongoDB Atlas
mlab
Mon
This worked for me by adding retryWrites=false ;
Current URL
mongodb://:@ds0145508.mlab.com:11508/testdb
New URL
mongodb://:@ds0145508.mlab.com:11508/testdb?retryWrites=false