Answers for "mongodb + add to array"

1

mongodb + add to array

db.students.updateOne(
   { name: "joe" },
   { $push: { scores: { $each: [ 90, 92, 85 ] } } }
)
Posted by: Guest on May-04-2022

Browse Popular Code Answers by Language