【发布时间】:2017-06-26 13:09:51
【问题描述】:
试图从mac终端插入mongoshell:
db.recipe.insert({ "_Title": "newname", "_Ingredients":
"newingredients" , "_Instructions": "newinstructions" ,"
_Time":1,"_Category": "newcategory", "_Author": "newauthor" ,
"_RecipeVersion": 1})
报错:
SyntaxError: missing : after property id @(shell):1:137
不确定我在这里缺少什么......
【问题讨论】:
-
我无法复制您的错误。我得到
WriteResult({ "nInserted" : 1 })。
标签: mongodb shell terminal syntax-error database