Answers for "mongodb add multiple element to array"

1

mongodb add multiple element to array

db.students.update(
   { name: "joe" },
   { $push: { scores: { $each: [ 90, 92, 85 ] } } }
)
Posted by: Guest on July-01-2020

Code answers related to "mongodb add multiple element to array"

Browse Popular Code Answers by Language