为什么我会收到SyntaxError:意外的令牌ILLEGAL

时间:2016-03-17 19:11:43

标签: node.js mongodb ubuntu

db.movie.insert({
    _id: ObjectId(7df78ad8902c), 
    title: "MongoDB Overview", 
    description: "MongoDB is no sql database", 
    by: "tutorials point", 
    url: "http://www.tutorialspoint.com", 
    tags: ["mongodb", "database", "NoSQL"], 
    likes: 100 
})

1 个答案:

答案 0 :(得分:0)

(也许我不明白你的问题)但是如果你想设置你的身份。你可以做这样的事情:

db.movie.insert({ _id: "7df78ad8902c",      title: "MongoDB Overview",...