One off question regarding write_concern set

Hi, is it also possible to set write_concern at the operational level (update_one)? and if so, does it supersede MongoClient()?
Thanks,

According to the following link it looks like it is possible.

https://docs.mongodb.com/manual/reference/method/db.collection.updateOne/

As for the python way to do it, it is somewhere down in:

http://api.mongodb.com/python/current/api/pymongo/collection.html

You can actually define users and roles with default write concerns!

2 Likes