Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
Whatever
mongodb add multiple element to array
David Michael Gregg
Programming language:
Whatever
2021-07-28 12:50:59
0
Q:
mongodb add multiple element to array
zoom13ie
Code:
Whatever
2021-08-25 04:04:47
db.students.update( { name: "joe" }, { $push: { scores: { $each: [ 90, 92, 85 ] } } } )
0
Tags
array
multiple
element
add
mongodb
Related
how to get data from multiple tables mongoose
mongodb add to array if not exists
mongodb match multiple fields
F# mongodb insert to array
New to Communities?
Join the community