这是我的文件:
{
$set: {"paths.0.pathBreak" : {
"1": {
"Key1" : [66.92, 22.34],
"Key2" : "Val2",
"Key3" : [64.92, 22.34],
"Key4" : "destination : dest2",
"transportTypes" : [{
"type" : "bus",
"fare" : {
"adult" : 5.0,
"child" : 2.0,
"all" : 5.0
},
"encodedPath" : "kjfghl2h34h2l4h",
"approxTime" : "00:00:30",
"info" : "direct "
}]
}
}
}
}
insertDoc
当我通过 mongodb shell将它分配给变量时:
> insertDoc={
... $set: {"paths.0.pathBreak" : {
...
... "1": {
... "Key1" : [66.92, 22.34],
... "Key2" : "Val2",
... "Key3" : [64.92, 22.34],
... "Key4" : "destination : dest2",
... "transportTypes" : [{
... "type" : "bus",
...
Display all 173 possibilities? (y or n)
... codedPath" : "kjfghl2h34h2l4h",
... "approxTime" : "00:00:30",
... "info" : "direct "
... }]
... }
... }
... }
... }
为什么它没有被分配给变量以及该行从哪里开始
Display all 173 possibilities? (y or n)
来自。有人能弄清楚吗?
编辑:
我实际上是将 mongoVUE 中的文档粘贴到 mongo shell 中。