.updateAll()

This will update all the {type: "Human"} objects it will find. You can modify all of them at once by using a loop.

db.find({type: "Human"})
    .then((Data) => {
        Data.result.forEach((e) => {
            e.legs = 2
        })
        Data.updateAll()
    })

Last updated