[英]Meteor, Mongo DB data insert error
I learning meteor 1.4 with this TUTORIAL 我通过这个教程学习流星1.4
trying to insert data through CMD with this command 尝试使用此命令通过CMD插入数据
db.tasks.insert({ itemOne: { text:'hello', value:0}}, itemTwo: {text:'hi', value:0}});
but get this error: 但是得到这个错误:
E QUERY [thread1] SyntaxError: missing ) after argument list @(shell):1:61
db.tasks.insert({ itemOne: { text:'hello', value:0}, itemTwo: { text:'hi', value:0}});
Now it should work, this inser a record like this: 现在它应该可以工作了,插入如下记录:
{
itemOne: { text:'hello', value:0},
itemTwo: { text:'hi', value:0}
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.