iT邦幫忙

0

mongoDB Compass update 資料

  • 分享至 

  • xImage

https://ithelp.ithome.com.tw/upload/images/20230819/201198152hG65enSu8.png
我想用updateMany() 修改資料,但好似mongo compass 覺得我有哪裡寫錯了。
但在terminal使用同樣語法卻成功了。
https://ithelp.ithome.com.tw/upload/images/20230819/20119815WMaY1XRYEW.png

請問是甚麼原因呢? 應該怎樣解決呢?

圖片
  直播研討會
圖片
{{ item.channelVendor }} {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

1 個回答

0
熊熊工程師
iT邦研究生 2 級 ‧ 2023-08-21 16:25:40
最佳解答

他旁邊告訴你那個是用來做篩選的只能用來查詢,如果你想在 mongo compass 裡面執行 update 之類的語法可以看到視窗最下面有一個 mongo shell
https://stackoverflow.com/questions/49110169/how-to-execute-update-set-queries-in-mongodb-compass-tool

hypons iT邦新手 5 級 ‧ 2023-08-22 15:22:17 檢舉

感謝

我要發表回答

立即登入回答