MongoDB Remplacer la chaîne Regex
db.collection.updateMany(
{ name: { $regex: stringToReplace } },
[{
$set: { name: {
$replaceAll: { input: "$name", find: stringToReplace, replacement: "" }
}}
}]
)
Lucas Charvolin