Dinesh
Dinesh

Reputation: 855

Meteor, Mongo DB data insert error

I learning meteor 1.4 with this TUTORIAL
trying to insert data through CMD with this command

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

Upvotes: 0

Views: 93

Answers (1)

perusopersonale
perusopersonale

Reputation: 896

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}
}

Upvotes: 1

Related Questions