आप एग्रीगेशन पाइपलाइन के साथ अपडेट आज़मा सकते हैं MongoDB 4.2 से शुरू,
$maplistIDs. के लूप को पुनरावृत्त करने के लिए सरणी$concat0000. को जोड़ने के लिए तत्व मान के साथ
db.collection.updateMany({},
[{
$set: {
listIDs: {
$map: {
input: "$listIDs",
in: { $concat: ["0000", "$$this"] }
}
}
}
}]
)