Mongoose: Retryable Writes

Created on 17 Jan 2018  路  2Comments  路  Source: Automattic/mongoose

Hi,

MongoDB 3.6 introduced Retryable Writes feature

I would like to know if It is already possible to use this feature with Mongoose or when it will be.

Thanks in advance!

Most helpful comment

You should be able to access them in mongoose >= 5.0.0-rc2 by specifying the retryWrites option in your connection string:

mongoose.connect('mongodb://localhost:27017/test?retryWrites=true');

See https://emptysqua.re/blog/driver-features-for-mongodb-3-6/#retryable-writes for more info

All 2 comments

You should be able to access them in mongoose >= 5.0.0-rc2 by specifying the retryWrites option in your connection string:

mongoose.connect('mongodb://localhost:27017/test?retryWrites=true');

See https://emptysqua.re/blog/driver-features-for-mongodb-3-6/#retryable-writes for more info

Nice @vkarpov15 ! Thank you

Was this page helpful?
0 / 5 - 0 ratings