Painting Blue Code
Simple, self-explanatory code snippets.
2015-08-18
MongoDB - Array pull all (multiple element deletion), based on value, from an array type of field
db.
COLLECTION_NAME
.update(
{
FILTER_HERE
}
, {
$pullAll
:{
FIELD_NAME
:
[
VALUE_1
,
VALUE_2
]
}
}
);
Newer Post
Older Post
Home