我想知道如何使用MongoVue工具插入布尔值。
我试过了
{
"IsGlobal": True,
}//点击插入按钮出错
和
{
"IsGlobal": "True",
}//变成字符串
和
{
"IsGlobal": new Boolean("True"),
}//我得到"Unable to parse Json: new Boolean...“
任何帮助都将不胜感激。
谢谢你们!
发布于 2011-06-21 15:29:50
答案是
{
"IsGlobal": true,
} 发布于 2015-11-02 17:31:57
在插入时,您需要确保使用正确的布尔关键字,如(true,false).It应始终从小写字母开始,而不是从大写字母开始。
标志db.UserCredential.insert({ "nInserted“:true }) WriteResult({ "nInserted”:1}) db.UserCredential.insert({"flag":false}) WriteResult({“nInserted”:1 })
https://stackoverflow.com/questions/6414097
复制相似问题