Insert multiple elements in an array
db.users.update(
{ name: "Foo"},
{ $push: { "technologies": { $each: ["one", "two"], $position: 4} } })
Press ← or → to navigate between chapters
Press S or / to search in the book
Press ? to show this help
Press Esc to hide this help
db.users.update(
{ name: "Foo"},
{ $push: { "technologies": { $each: ["one", "two"], $position: 4} } })