Lets learn how to update all the documents present in a collection using update() method, using the option multi: true…