Painting Blue Code
Simple, self-explanatory code snippets.
2015-08-18
MongoDB - Array pull (remove) all elements with a given value, of an array type of field
db.
COLLECTION_NAME
.update( {
FILTER_HERE
}, {
$pull
:{
FIELD_NAME_WITH_ARRAY
:
VALUE_HERE
} } );
Newer Post
Older Post
Home