$mul
Update records by multiplying the value of a numeric column by a specified factor. The $mul method is used to adjust numeric fields by multiplying the current value with a given number, often used in scenarios like applying a percentage increase or scaling values.
await Member.$update({
$where: {
age: {
$eq: 16
}
},
$update: {
$mul: {
age: 3
}
}
});
Last updated