db.collection.updateMany(filter, update, options) Important mongosh Method This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js. For the database command, see the update command. For MongoDB API drivers, refer...
getDatabase("testdb").getCollection("testcollection"); assertThatExceptionOfType(MongoException.class) .isThrownBy(() -> collection.updateMany(json("{}"), Updates.set("foo", "bar"), new UpdateOptions().upsert(true))) .withMessageContaining("Command failed with error 59 (CommandNotFound):...
db.collection.updateMany(filter, update, options) Important mongosh Method This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js. For the database command, see the update command. For MongoDB API drivers, refer...
For the database command, see the update command. For MongoDB API drivers, refer to the language-specific MongoDB driver documentation. Updates all documents that match the specified filter for a collection. Compatibility You can use db.collection.updateMany() for deployments hosted in the follow...
To use the database command, see the update command. For MongoDB API drivers, refer to the language-specific MongoDB driver documentation. Updates all documents that match the specified filter for a collection. Compatibility You can use db.collection.updateMany() for deployments hosted in the ...
db.collection.updateMany(filter, update, options) Important mongosh Method This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js. For the database command, see the update command. For MongoDB API drivers, refer...
db.collection.updateMany(filter, update, options) Important mongosh Method This page documents a mongosh method. This is not the documentation for database commands or language-specific drivers, such as Node.js. For the database command, see the update command. For MongoDB API drivers, refer...
This method is available in deployments hosted in the following environments: MongoDB Atlas: The fully managed service for MongoDB deployments in the cloud Note This command is supported in all MongoDB Atlas clusters. For information on Atlas support for all commands, see Unsupported Commands. Mong...
To use the database command, see the update command. For MongoDB API drivers, refer to the language-specific MongoDB driver documentation. Updates all documents that match the specified filter for a collection.Syntax The updateMany() method has the following form: copy copied db.collection....
db.collection.updateMany(filter, update, options) Updates all documents that match the specified filter for a collection. Compatibility You can use db.collection.updateMany() for deployments hosted in the following environments: MongoDB Atlas: The fully managed service for MongoDB deployments in the ...