首页 > 解决方案 > 在 mongo shell 中取消设置 const

问题描述

有没有办法在 mongo shell 中取消设置const 。

尝试删除运算符时,我得到以下输出:

> const myconst = {"test":123}
> myconst
{ "test" : 123 }
> delete myconst
false
>

标签: mongodbshellconstants

解决方案


推荐阅读