$pullAll

The `$pullAll` operator removes all instances of the specified values from an existing array.

Syntax

{ $pullAll: { field: [ <value1>, <value2>, ... ] } }

Parameters

fieldstringrequired

The field to update.

<value1>, <value2>stringrequired

The values to remove from the array.