Painting Blue Code
Simple, self-explanatory code snippets.
2015-08-18
MongoDB - Array push all (insert multiple values) into an array type of field
db.
COLLECTION_NAME
.update( {
FILTER_HERE
}, {
$pushAll
:{
FIELD_NAME_WITH_ARRAY
:[
VALUE_1
,
VALUE_2, VALUE_N
]} } );
Newer Post
Older Post
Home