update()
Update multiple items in a collection
Example
db.collection("users").update({banned: false, xp: "99999"}, {
"$set": {
xp: "0"
}
}).then(() => {
//Items have been updated;
}).catch(error => {
console.log("error:", error);
});
update(<filter>, <options>)
Parameter
Description
filter
The filter used to select the items to update
Last updated
Was this helpful?