Samuel
0
Q:

insert item into list mongodb

db.collection.update({_id:xx}, {$push:{letters : {$each:['first one'], $position:0}}})
4
db.students.update(
   { name: "joe" },
   { $push: { scores: { $each: [ 90, 92, 85 ] } } }
)
0

New to Communities?

Join the community