病名为莲 莲是真的可爱呀,为什么这么可爱 “何为心动?” “风起,云动,鸟惊起” “可否具体?” “转角,回眸,余光里” “可否再具体?” “有幸遇莲” “何为无医?” “灵丹,妙药,救不急” “可否具体?” “华佗,仲景,皆不语” “可否再具体?” “恋莲成疾”
Test reply publish type: Change javascriptdb.topics.updateMany( { "replies": { $exists: true, $type: "array" } }, [ { $set: { replies: { $map: { input: "$replies", in: { $toInt: "$$this" } } } } } ] ); Note: You can use Ctrl + Shift + V to paste plain text. The default language is Javascript