- Reference >
- Operators >
- Update Operators >
- Array Update Operators >
- $pullAll
$pullAll¶
-
$pullAll¶ The
$pullAlloperator removes multiple values from an existing array.$pullAllprovides the inverse operation of the$pushAlloperator. Consider the following example:Here,
$pullAllremoves[ value1, value2, value3 ]from the array infield1, in the document that matches the query statement{ field: value }incollection.